Adding assertion commands
When selenium is in recording mode, right click on the application and select verify and/or assert commands from context menu.
There are three modes of Assertion commands used in Selenium
1. Assert: When an assert fails, the test is aborted.
Example: assertText
2. Verify: When a Verify fails, the test will continue execution.
Example: verifyText
3. WaitFor: WaitFor Commands waits for a particular condition to get true.
Example:
waitForText
waitForPageToLoad
No comments:
Post a Comment