PHP Class WebDriver\WebDriver

Inheritance: extends webdriver\AbstractWebDriver
Datei anzeigen Open project: instaclick/php-webdriver Class Usage Examples

Public Methods

Method Description
session ( array | string $requiredCapabilities = Browser::FIREFOX, array $desiredCapabilities = [] ) : Session New Session: /session (POST) Get session object for chaining
sessions ( ) : array Get list of currently active sessions

Protected Methods

Method Description
methods ( )

Method Details

methods() protected method

protected methods ( )

session() public method

New Session: /session (POST) Get session object for chaining
public session ( array | string $requiredCapabilities = Browser::FIREFOX, array $desiredCapabilities = [] ) : Session
$requiredCapabilities array | string Required capabilities (or browser name)
$desiredCapabilities array Desired capabilities
return Session

sessions() public method

Get list of currently active sessions
public sessions ( ) : array
return array an array of \WebDriver\Session objects