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 – complex working with multiple windows

In the next example we are going to open up two pop-up windows and move between them and the parent window as it completes its steps.

  1. Start Selenium IDE and go to Chapter 1 on the website.
  2. Click on the Click this link to launch another window link. This will launch a pop-up window.
  3. Assert the text on the page. We do this by right-clicking and selecting assertText.
  4. Go back to the parent window and click on the link to launch the second pop-up window.
  5. Verify the text on the page.
  6. Move to the first pop-up window and close it using the close link. As before, be aware of clickAndWait instead of click.
  7. Move to the second pop-up window and close it using the close link.
  8. Move back to the parent window and ...

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