SUBSCRIBE HERE TO GET POST UPDATES VIA EMAIL :

Delivered by FeedBurner

Showing posts with label selenium. Show all posts
Showing posts with label selenium. Show all posts

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
open https://www.google.co.in/
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