function Selenium2Driver::__construct
Instantiates the driver.
Parameters
string $browserName Browser name:
array|null $desiredCapabilities The desired capabilities:
string $wdHost The WebDriver host:
File
-
vendor/
lullabot/ mink-selenium2-driver/ src/ Selenium2Driver.php, line 80
Class
- Selenium2Driver
- Selenium2 driver.
Namespace
Behat\Mink\DriverCode
public function __construct(string $browserName = 'firefox', ?array $desiredCapabilities = null, string $wdHost = 'http://localhost:4444/wd/hub') {
$this->setBrowserName($browserName);
$this->setDesiredCapabilities($desiredCapabilities);
$this->setWebDriver(new WebDriver($wdHost));
$this->xpathEscaper = new Escaper();
}