Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / tests / Drupal / FunctionalJavascriptTests / DrupalSelenium2Driver.php
index 5f243af67094f653f15eeb1e2658ae282e83c504..f67e738baf0c2c0543620107658719321dc94ffb 100644 (file)
@@ -3,12 +3,21 @@
 namespace Drupal\FunctionalJavascriptTests;
 
 use Behat\Mink\Driver\Selenium2Driver;
+use WebDriver\ServiceFactory;
 
 /**
  * Provides a driver for Selenium testing.
  */
 class DrupalSelenium2Driver extends Selenium2Driver {
 
+  /**
+   * {@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}
    */