|
| | __construct ( $browsername='chrome', $desiredcapabilities=null, $wdhost='http://localhost:4444/wd/hub', $moodleparameters=[]) |
| | Instantiates the driver.
|
| |
| | post_key ($key, $xpath) |
| | Post key on specified xpath.
|
| |
|
| stop () |
| |
|
|
static string | $browser |
| | Dirty attribute to get the browser name; $browserName is private.
|
| |
◆ __construct()
| Moodle\BehatExtension\Driver\WebDriver::__construct |
( |
| $browsername = 'chrome', |
|
|
| $desiredcapabilities = null, |
|
|
| $wdhost = 'http://localhost:4444/wd/hub', |
|
|
| $moodleparameters = [] ) |
Instantiates the driver.
- Parameters
-
| string | $browsername | Browser name |
| array | $desiredcapabilities | The desired capabilities |
| string | $wdhost | The WebDriver host |
| array | $moodleparameters | Moodle parameters including our non-behat-friendly selenium capabilities |
◆ getBrowserName()
| static Moodle\BehatExtension\Driver\WebDriver::getBrowserName |
( |
| ) |
|
|
static |
Returns the browser being used.
We need to know it:
- To show info about the run.
- In case there are differences between browsers in the steps.
- Return values
-
◆ post_key()
| Moodle\BehatExtension\Driver\WebDriver::post_key |
( |
| $key, |
|
|
| $xpath ) |
Post key on specified xpath.
- Parameters
-
The documentation for this class was generated from the following file:
- lib/behat/extension/Moodle/BehatExtension/Driver/WebDriver.php