Set-Timeout

Set the amount of time, in milliseconds, are permitted to run before they are aborted and a timeout error is returned to the client.

Powershell

Set the amount of time, in milliseconds, are permitted to run before they are aborted and a timeout error is returned to the client.

Syntax

Set-Timeout [-sessionId ] [-time] []

Parameters

name description
sessionId (Optional) The identifier of the session to route the command to.
time The amount of time to wait, in milliseconds. This value has a lower bound of 0.

Examples

Set-Timeout -time 3000

C#

Declaration

void OpenQA.Selenium.ITimeouts.ImplicitWait;

Arguments:

type name description
System.TimeSpan The amount of time the driver should wait when searching for an element.

Examples

driver.Manage().Timeouts().ImplicitWait = timeoutValue;