Nowadays, web applications tend to do a lot of processing in the background or asynchronously before showing elements on the page. As a consequence, web applications do not have a constant speed. This means that we should manage the automation script flow through implicit and explicit waits. In this chapter, you'll learn how to write a stable automation script by waiting for an element to be present.
By the end of this chapter, you will be able to:
- Synchronize an automation script with an implicit wait as well as an explicit wait
- Explain the key differences between implicit and explicit waits
- Synchronize an automation script with a custom written condition