Table of Contents

Interface ITimeouts

Namespace
OpenQA.Selenium
Assembly
WebDriver.dll

Defines the interface through which the user can define timeouts.

public interface ITimeouts

Properties

AsynchronousJavaScript

Gets or sets the asynchronous script timeout, which is the amount of time the driver should wait when executing JavaScript asynchronously. This timeout only affects the ExecuteAsyncScript(string, params object[]) method.

TimeSpan AsynchronousJavaScript { get; set; }

Property Value

TimeSpan

ImplicitWait

Gets or sets the implicit wait timeout, which is the amount of time the driver should wait when searching for an element if it is not immediately present.

TimeSpan ImplicitWait { get; set; }

Property Value

TimeSpan

Remarks

When searching for a single element, the driver should poll the page until the element has been found, or this timeout expires before throwing a NoSuchElementException. When searching for multiple elements, the driver should poll the page until at least one element has been found or this timeout has expired.

Increasing the implicit wait timeout should be used judiciously as it will have an adverse effect on test run time, especially when used with slower location strategies like XPath.

PageLoad

Gets or sets the page load timeout, which is the amount of time the driver should wait for a page to load when setting the Url property.

TimeSpan PageLoad { get; set; }

Property Value

TimeSpan