Chapter 3. Controlling the Test Flow

In this chapter, we will cover the following:

  • Synchronizing a test with an implicit wait
  • Synchronizing a test with an explicit wait
  • Synchronizing a test with custom-expected conditions
  • Checking an element's presence
  • Checking an element's status
  • Identifying and handling a pop-up window by its name
  • Identifying and handling a pop-up window by its title
  • Identifying and handling a pop-up window by its content
  • Handling a simple JavaScript alert
  • Handling a confirm box alert
  • Handling a prompt box alert
  • Identifying and handling frames
  • Identifying and handling frames by their content
  • Working with IFRAME

Introduction

While building test automation for a complex web application using Selenium WebDriver, we need to ensure that the test ...

Get Selenium Testing Tools Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.