Tracking Down Timing Errors with Synchronization Points

In Chapter 5, Waiting for Elements, you learned about the different types of waits that can be used in Selenium. Another way to call the waits is by making use of synchronization points, because they enable our automation scripts to wait until the web application responds. The web application being tested is a simple web page that loads an element. This element always shows up randomly, between 0 and 10 seconds (this has been done intentionally, to simulate an application that is loading information from different backend services). After the element shows up, we click on it, and the second element loads. This goes on until the fourth element, when the last click changes the contents ...

Get Selenium Fundamentals now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.