class WebDriverWait (View source)

A utility class, designed to help the user to wait until a condition turns true.

Properties

protected WebDriver $driver
protected int $timeout
protected int $interval

Methods

__construct(WebDriver $driver, $timeout_in_second = null, $interval_in_millisecond = null)

No description

mixed
until(callable|WebDriverExpectedCondition $func_or_ec, string $message = '')

Calls the function provided with the driver as an argument until the return value is not falsey.

Details

__construct(WebDriver $driver, $timeout_in_second = null, $interval_in_millisecond = null)

No description

Parameters

WebDriver $driver
$timeout_in_second
$interval_in_millisecond

mixed until(callable|WebDriverExpectedCondition $func_or_ec, string $message = '')

Calls the function provided with the driver as an argument until the return value is not falsey.

Parameters

callable|WebDriverExpectedCondition $func_or_ec
string $message

Return Value

mixed

The return value of $func_or_ec

Exceptions

NoSuchElementException
TimeoutException
Exception