Skip to content
Advertisement

Is it a bug in Selenium documentation?

Here is the snippet from the new Selenium doc on Waits:

JavaScript

When I paste this code, it gives me an error on the Duration: The constructor WebDriverWait(WebDriver, Duration) is undefined

It still works with the following syntax:

JavaScript

Is it the documentation bug?

Advertisement

Answer

As I wrote in the original question,

JavaScript

the code above still works. I guess, as @Fenio assumed, the new syntax will be available in Selenium 4 since it exists in the GitHub.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement