assertTextPresetCount

description

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.

download

assertTextPresentCount ver.1.0

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Oct 23, 2006

    harmin says:

    Hi: I would suggest to rename this function to assertTextCountPresent in order ...

    Hi:

    I would suggest to rename this function to assertTextCountPresent in order to let selenium to generate the following functions :

    verifyTextCountPresent
    storeTextCountPresent

    assertTextCountNotPresent
    verifyTextCountNotPresent
    storeTextCountNotPresent

  2. Jan 22, 2007

    konstantin.petkov says:

    Hi, Just want to add this extension works with the latest v0.8.2 as well. I jus...

    Hi,

    Just want to add this extension works with the latest v0.8.2 as well. I just verified that so you can update the notes!

    Many thanks, Isaac!