class WebDriverTimeouts (View source)

Managing timeout behavior for WebDriver instances.

Properties

protected $executor

Methods

__construct($executor)

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($executor)

No description

Parameters

$executor

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.