[dotnet] [🚀 Feature] Add WebDriverWait
constructor for timeout and interval without a clock
#15314
Labels
WebDriverWait
constructor for timeout and interval without a clock
#15314
Feature and motivation
Often times, when using
WebDriverWait
, we want to specify a custom sleep interval. However, it requires users to use theWebDriverWait(IClock clock, IWebDriver driver, TimeSpan timeout, TimeSpan sleepInterval)
constructor overload, and users must learn about theIClock
interface.We can add a constructor
WebDriverWait(IWebDriver driver, TimeSpan timeout, TimeSpan sleepInterval)
which allows users to specify only the values they need.The Java binding already has this overload
selenium/java/src/org/openqa/selenium/support/ui/WebDriverWait.java
Lines 61 to 63 in d77c827
Usage example
The text was updated successfully, but these errors were encountered: