class WebDriverTimeouts (View source)

Managing timeout behavior for WebDriver instances.

Properties

protected ExecuteMethod $executor
protected bool $isW3cCompliant

Methods

__construct(ExecuteMethod $executor, $isW3cCompliant = false)

No description

implicitlyWait(int $seconds)

Specify the amount of time the driver should wait when searching for an element if it is not immediately present.

setScriptTimeout(int $seconds)

Set the amount of time to wait for an asynchronous script to finish execution before throwing an error.

pageLoadTimeout(int $seconds)

Set the amount of time to wait for a page load to complete before throwing an error.

Details

__construct(ExecuteMethod $executor, $isW3cCompliant = false)

No description

Parameters

ExecuteMethod $executor
$isW3cCompliant

WebDriverTimeouts implicitlyWait(int $seconds)

Specify the amount of time the driver should wait when searching for an element if it is not immediately present.

Parameters

int $seconds

Wait time in second.

Return Value

WebDriverTimeouts

The current instance.

WebDriverTimeouts setScriptTimeout(int $seconds)

Set the amount of time to wait for an asynchronous script to finish execution before throwing an error.

Parameters

int $seconds

Wait time in second.

Return Value

WebDriverTimeouts

The current instance.

WebDriverTimeouts pageLoadTimeout(int $seconds)

Set the amount of time to wait for a page load to complete before throwing an error.

Parameters

int $seconds

Wait time in second.

Return Value

WebDriverTimeouts

The current instance.