WebDriverTimeouts
in package
Managing timeout behavior for WebDriver instances.
Table of Contents
Properties
- $executor : ExecuteMethod
- $isW3cCompliant : bool
Methods
- __construct() : mixed
- implicitlyWait() : WebDriverTimeouts
- Specify the amount of time the driver should wait when searching for an element if it is not immediately present.
- pageLoadTimeout() : WebDriverTimeouts
- Set the amount of time to wait for a page load to complete before throwing an error.
- setScriptTimeout() : WebDriverTimeouts
- Set the amount of time to wait for an asynchronous script to finish execution before throwing an error.
Properties
$executor
protected
ExecuteMethod
$executor
$isW3cCompliant
protected
bool
$isW3cCompliant
Methods
__construct()
public
__construct(ExecuteMethod $executor[, mixed $isW3cCompliant = false ]) : mixed
Parameters
- $executor : ExecuteMethod
- $isW3cCompliant : mixed = false
implicitlyWait()
Specify the amount of time the driver should wait when searching for an element if it is not immediately present.
public
implicitlyWait(int $seconds) : WebDriverTimeouts
Parameters
- $seconds : int
-
Wait time in second.
Return values
WebDriverTimeouts —The current instance.
pageLoadTimeout()
Set the amount of time to wait for a page load to complete before throwing an error.
public
pageLoadTimeout(int $seconds) : WebDriverTimeouts
Parameters
- $seconds : int
-
Wait time in second.
Return values
WebDriverTimeouts —The current instance.
setScriptTimeout()
Set the amount of time to wait for an asynchronous script to finish execution before throwing an error.
public
setScriptTimeout(int $seconds) : WebDriverTimeouts
Parameters
- $seconds : int
-
Wait time in second.
Return values
WebDriverTimeouts —The current instance.