Showing posts with label assertTextNotPresent command. Show all posts
Showing posts with label assertTextNotPresent command. Show all posts

"assertTextPresent" command

"assertTextPresent" command is useful for verifying and asserting selenium if given text is not present on page. It will return false as error if specified text is not present on page and will stop execution.

New Test
Command Target Value
open https://www.google.co.in/
assertTextPresent Maps
verifyTextPresent Maps

In above example, selenium IDE software testing tool will stop execution if text "Maps" not present on page.

VIEW WEBDRIVER EXAMPLES FOR ALL ASSERTION

"assertTextNotPresent" command

"assertTextNotPresent" is assertion for if specified text present on software web page. You can use this command when