Mercurial > hg > cmmr2012-drupal-site
comparison core/tests/Drupal/FunctionalJavascriptTests/DrupalSelenium2Driver.php @ 4:a9cd425dd02b
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:11:55 +0000 |
parents | c75dbcec494b |
children | 12f9dff5fda9 |
comparison
equal
deleted
inserted
replaced
3:307d7a7fd348 | 4:a9cd425dd02b |
---|---|
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) { |