comparison 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
comparison
equal deleted inserted replaced
16:c2387f117808 17:129ea1e6d783
1 <?php 1 <?php
2 2
3 namespace Drupal\FunctionalJavascriptTests; 3 namespace Drupal\FunctionalJavascriptTests;
4 4
5 use Behat\Mink\Driver\Selenium2Driver; 5 use Behat\Mink\Driver\Selenium2Driver;
6 use WebDriver\ServiceFactory;
6 7
7 /** 8 /**
8 * Provides a driver for Selenium testing. 9 * Provides a driver for Selenium testing.
9 */ 10 */
10 class DrupalSelenium2Driver extends Selenium2Driver { 11 class DrupalSelenium2Driver extends Selenium2Driver {
12
13 /**
14 * {@inheritdoc}
15 */
16 public function __construct($browserName = 'firefox', $desiredCapabilities = NULL, $wdHost = 'http://localhost:4444/wd/hub') {
17 parent::__construct($browserName, $desiredCapabilities, $wdHost);
18 ServiceFactory::getInstance()->setServiceClass('service.curl', WebDriverCurlService::class);
19 }
11 20
12 /** 21 /**
13 * {@inheritdoc} 22 * {@inheritdoc}
14 */ 23 */
15 public function setCookie($name, $value = NULL) { 24 public function setCookie($name, $value = NULL) {