diff core/tests/Drupal/FunctionalJavascriptTests/DrupalSelenium2Driver.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 1fec387a4317
children af1871eacc83
line wrap: on
line diff
--- a/core/tests/Drupal/FunctionalJavascriptTests/DrupalSelenium2Driver.php	Tue Jul 10 15:07:59 2018 +0100
+++ b/core/tests/Drupal/FunctionalJavascriptTests/DrupalSelenium2Driver.php	Thu Feb 28 13:21:36 2019 +0000
@@ -3,6 +3,7 @@
 namespace Drupal\FunctionalJavascriptTests;
 
 use Behat\Mink\Driver\Selenium2Driver;
+use WebDriver\ServiceFactory;
 
 /**
  * Provides a driver for Selenium testing.
@@ -12,6 +13,14 @@
   /**
    * {@inheritdoc}
    */
+  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);
+  }
+
+  /**
+   * {@inheritdoc}
+   */
   public function setCookie($name, $value = NULL) {
     if ($value === NULL) {
       $this->getWebDriverSession()->deleteCookie($name);