© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2021
S. ShuklaPractical WebDriverIOhttps://doi.org/10.1007/978-1-4842-6661-8_8

8. Timeouts

Shashank Shukla1  
(1)
Mandla, India
 

In the last chapter, you learned about waits, which play a very important part in making tests stable. On the other side of the spectrum, if a test case fails, it should fail as quickly as possible.

A specified time is allowed to elapse in a test script before an error message is displayed to the user; this is called the timeout period . If there is a failure during the test, timeouts ensure that it happens as quickly as possible, ending with a timeout message so the user doesn’t have to wait indefinitely and blocking the rest of the test ...

Get Practical WebDriverIO: Learn to Automate Effectively Using WebDriverIO APIs 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.