ITimeouts SetScriptTimeout Method WebDriver
Specifies the amount of time the driver should wait when executing JavaScript asynchronously.

Namespace: OpenQA.Selenium
Assembly: WebDriver (in WebDriver.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax

ITimeouts SetScriptTimeout(
	TimeSpan timeToWait
)

Parameters

timeToWait
Type: OnlineSystem TimeSpan
A OnlineTimeSpan structure defining the amount of time to wait. Setting this parameter to OnlineMinValue will allow the script to run indefinitely.

Return Value

A self reference
See Also