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 with AJAX applications

As more and more applications try to act like desktop applications we need to be able to handle synchronization steps between our test and our application. In this section we will see how to handle AJAX and what to synchronize.

  1. Click on the load text to the page button.
  2. Navigate to http://book.theautomatedtester.co.uk/chapter1.
  3. Wait for the text I have been added with a timeout. Your test will look like the following screenshot:
    Time for action – working with AJAX applications

What just happened?

In the previous examples, we waited for an element to appear on the page; there are a number of different commands that we can use to wait. Also remember ...

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