Wednesday, October 29, 2014

Chapter 7- Selenium IDE Verification Points

Selenium IDE Verification Points

The test cases that we develop also need to check the properties of a web-page. This requires assert and verify commands. There are two ways to insert any verfication points into the script
To Insert any verification point in recording mode, "Right click" on the element and choose "Show all Available Commands" as shown below.
selenium ide 21
We can also insert a command by performing a "Right Click" and choose "Insert New Command".
selenium ide 22
After Inserting New command, click 'Command' drop down and select appropriate verification point from the available list of commands as shown below
selenium ide 23
Below are the mostly used verification commands which will help us to check if a particular step has passed or failed.
  • verifyElementPresent
  • assertElementPresent
  • verifyElementNotPresent
  • assertElementNotPresent
  • verifyText
  • assertText
  • verifyAttribute
  • assertAttribute
  • verifyChecked
  • assertChecked
  • verifyAlert
  • assertAlert
  • verifyTitle
  • assertTitle

Synchronization points

During Script Execution, the application might respond based on server load, hence it is required for the application and script to be in sync. Below are few commands which we can use to ensure that script and application are in sync.
  • waitForAlertNotPresent
  • waitForAlertPresent
  • waitForElementPresent
  • waitForElementNotPresent
  • waitForTextPresent
  • waitForTextNotPresent
  • waitForPageToLoad
  • waitForFrameToLoad

No comments: