What is the default wait value for Selenium WebDriver?

What is the default undefined wait value for Selenium WebDriver?

The selenium documentation says that it is โ€œ0โ€, but when I call .findElement in a completely new project where the element does not exist in the DOM, it seems like after a while it gets a TimeoutException and not hangs indefinitely. Does "0" wait forever or not?

+4
source share
2 answers

The default value for implicit expectations is indeed zero, which means (and always meant) "fail findElementimmediately if the item cannot be found." You should not receive TimeoutExceptiondirectly from findElement. Most likely, you will get this when using the so-called "explicit wait", using the construct WebDriverWait.

+5
source

I believe that in SeleniumBasic, at least the implicit wait is 3000 ms or 3 seconds. You can find out for yourself simply using msgbox (driver.timeouts.implicitwait ()).

0
source

Source: https://habr.com/ru/post/1570391/


All Articles