<<Previous Next >>
Assert Text present : This command will search "Text" on the page which is given in Target field. Execution of next command will be stopped if text is not present and in the reports it shows test case as Failed
Command | Target | Value |
open | https://www.google.co.in | |
clickAndWait | link=Gmail | |
clickAndWait | id=gmail-sign-in | |
assertTextPresent | ||
verifyTextPresent | Password | |
clickAndWait | id=signIn |
In the above example "assertTextPresent" will verifies whether "Email" is present some where on page or not. If it is not present execution will get stopped
Verify Text present:
Execution will not be stopped even Specified text is not present but in the reports it will be displayed as failed.Execution will continue on next command
Command | Target | Value |
open | https://www.google.co.in | |
clickAndWait | link=Gmail | |
clickAndWait | id=gmail-sign-in | |
assertTextPresent | ||
verifyTextPresent | Password | |
clickAndWait | id=signIn |
In the above example "verifyTextPresent" will verifies whether "Password" is present some where on the page or not, even if it is not available execution will continue next command i.e "clickAndWait" but in the reports it will shows as "Failed"
Related articles: While loop in selenium IDE , Store values in selenium IDE, How to change default timeout in selenium IDE
Verify Text present in selenium IDE, Assert Text present in selenium IDE,difference between assert text and verify ||textdifference between assert and verify in selenium ide|| commands in selenium IDE|| asserts in selenium IDE ||selenium IDE beginers Tutorial ||
validate Text in page selenium IDE|| Assert Vs Verify in selenium || Asserts in selenium IDE| assert vs verify in selenium IDE||selenium ide assertions||selenium ide asserttext||selenium ide assert url||selenium ide assert text contains||selenium ide assertelementpresent||selenium ide assert alert||selenium ide assert text present||selenium ide assertattribute||selenium ide asserteval||selenium ide asserttextpresent example
No comments:
Post a Comment