Initializes a new instance of the WebDriverWait class.
Namespace: OpenQA.Selenium.Support.UIAssembly: WebDriver.Support (in WebDriver.Support.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax
public WebDriverWait( IClock clock, IWebDriver driver, TimeSpan timeout, TimeSpan sleepInterval )
Parameters
- clock
- Type: OpenQA.Selenium.Support.UI IClock
An object implementing the IClock interface used to determine when time has passed.
- driver
- Type: OpenQA.Selenium IWebDriver
The WebDriver instance used to wait.
- timeout
- Type:
System TimeSpan
The timeout value indicating how long to wait for the condition.
- sleepInterval
- Type:
System TimeSpan
ATimeSpan value indicating how often to check for the condition to be true.
See Also