$driver
$driver : \WebDriver
$driver : \WebDriver
$dispatcher : \WebDriverDispatcher
__construct(\WebDriver $driver, \WebDriverDispatcher $dispatcher = null)
| \WebDriver | $driver | |
| \WebDriverDispatcher | $dispatcher |
getDispatcher() : \WebDriverDispatcher
getWebDriver() : \WebDriver
findElements(\WebDriverBy $by) : array
| \WebDriverBy | $by |
findElement(\WebDriverBy $by) : \EventFiringWebElement
| \WebDriverBy | $by |
executeScript( $script, array $arguments = array()) : mixed
Inject a snippet of JavaScript into the page for execution in the context of the currently selected frame. The executed script is assumed to be synchronous and the result of evaluating the script will be returned.
| $script | ||
| array | $arguments |
executeAsyncScript( $script, array $arguments = array()) : mixed
Inject a snippet of JavaScript into the page for asynchronous execution in the context of the currently selected frame.
The driver will pass a callback as the last argument to the snippet, and block until the callback is invoked.
| $script | ||
| array | $arguments |
wait(integer $timeout_in_second = 30, integer $interval_in_millisecond = 250) : \WebDriverWait
Construct a new WebDriverWait by the current WebDriver instance.
Sample usage:
$driver->wait(20, 1000)->until(
WebDriverExpectedCondition::titleIs('WebDriver Page')
);
| integer | $timeout_in_second | |
| integer | $interval_in_millisecond |
manage() : \WebDriverOptions
An abstraction for managing stuff you would do in a browser menu. For example, adding and deleting cookies.
navigate() : \EventFiringWebDriverNavigation
An abstraction allowing the driver to access the browser's history and to navigate to a given URL.
switchTo() : \WebDriverTargetLocator
Switch to a different window or frame.
getTouch() : \WebDriverTouchScreen
getActiveElement() : \WebDriverElement
Get the element on the page that currently has focus.
newElement(\WebDriverElement $element) : \EventFiringWebElement
| \WebDriverElement | $element |