O'Reilly logo

Selenium 2 Testing Tools Beginner's Guide by David Burns

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – updating a test to verify items on the page

In this section we are going to be recording a test and then we are going to update it to have some verify commands:

  1. Open the IDE so that we can start recording.
  2. Navigate to http://book.theautomatedtester.co.uk/chapter1.
  3. Select Selenium Grid from the drop-down box.
  4. Change the Select to Selenium Grid.
  5. Verify that Assert that this text is on the page text is mentioned on the right-hand side of the drop-down box, by right-clicking on the text and selecting Verify TextPresent Assert that this text is on the page. You can see the command in the previous screenshot.
  6. Verify that the button is on the page. You will need to add a new command for verifyElementPresent with the target verifybutton

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required