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 – working on pages with AJAX

In our first example, we are going to click on a link and then assert some text is visible on the screen:

  1. Start up Selenium IDE and make sure that the Record button is pressed.
  2. Navigate to http://book.theautomatedtester.co.uk/chapter1.
  3. Click on the text that says Click this link to load a page with AJAX.
  4. Verify the text that appears on your screen. Your test should look like the following screenshot:
    Time for action – working on pages with AJAX
  5. Run the test that you have created. When it has finished running it should look like the following screenshot:

Have a look at the page that you are working against. Can you see the text that the test is expecting? ...

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