You are here

public function DrupalSelenium2Driver::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/FunctionalJavascriptTests/DrupalSelenium2Driver.php \Drupal\FunctionalJavascriptTests\DrupalSelenium2Driver::__construct()

File

core/tests/Drupal/FunctionalJavascriptTests/DrupalSelenium2Driver.php, line 18

Class

DrupalSelenium2Driver
Provides a driver for Selenium testing.

Namespace

Drupal\FunctionalJavascriptTests

Code

public function __construct($browserName = 'firefox', $desiredCapabilities = NULL, $wdHost = 'http://localhost:4444/wd/hub') {
  parent::__construct($browserName, $desiredCapabilities, $wdHost);
  ServiceFactory::getInstance()
    ->setServiceClass('service.curl', WebDriverCurlService::class);
}