This chapter discusses waits. Unreliability in tests occurs due to rare conditions between the browser and the automation tool’s instructions. There are times when the browser lags, and the automation tool’s instructions are executed even when the element is not yet available in the DOM. Sometimes the element loads after a few seconds, depending on the network bandwidth server response time or how animation-intensive the web page is.
8. Waits and Timeouts
Get The Protractor Handbook: Understanding and Implementing the Tool Effectively 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.