assertTextPresetCount

assertTextPresetCount command verify that the specified text is present with specified count in the page content.

This command was made based on assertTextPresent command.
assertTextPresent command cannot verify that same text presents several times in the page content, this command verify how many times the text presents.

If you specified "1" as count, you can use this command as well as assertTextPresent command, and "0" as assertTextNotPresent command.

example of use

command expected text expected count
assertTextPresentCount You are now logged in. 1
verifyTextPresentCount error! 2

notes

-Use this extension with Selenium(Selenium Core) 0.6 or 0.7.x.

license

This user extension is available under Apache License 2.0.
It is Copyright DTS corporation. 2006.

File: 

AttachmentSize
Package icon assertTextPresentCount.zip2.97 KB

Type: 

User-Extension