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

Selenium IDE has many assertion commands to verify the presence of text, value, alert, confirmation, button, link, amny many more. You can Visit this page to look at all the assertion commands with example. "assertNotText" and "assertNotValue" commands are one of them and i am

Here let me describe you main difference between assert and verify in selenium IDE software testing tool and selenium RC software testing tool. assert and verify commands are useful for verifying condition match or not.

Verify command will verify the condition and if its not match, it will give error message in Log area and will start executing next commands. while in assert command, if condition does not match then it will stop remaining script execution in selenium IDE software testing tool.

Note : Do you wants to learn more examples of selenium IDE software testing tool's commands? View this full tutorial guide.

In bellow example, you can understand difference better.

New Test
Command Target Value
verifyText css=#gb_2 > span.gbts xyz
assertText css=#gb_2 > span.gbts xyz
verifyText css=#gb_2 > span.gbts Images

Here element "css=#gb_2 > span.gbts" contains text "Images"

In this example, first "verifyText" command will go for checking that element "css=#gb_2 > span.gbts" contains text "xyz"? it