Skip to content

Commit 51f9540

Browse files
authored
Merge pull request #1 from OndraM/php-webdriver
Rename php-webdriver package
2 parents e1b9957 + 7946268 commit 51f9540

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"require": {
2222
"php": ">=5.6.0 <8.0",
2323
"codeception/codeception": "4.0.x-dev | ^4.0",
24-
"facebook/webdriver": "^1.6.0"
24+
"php-webdriver/webdriver": "^1.6.0"
2525
},
2626
"require-dev": {
2727
"codeception/util-robohelpers": "dev-master"

documentation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,8 @@ Returns current WebDriver session for saving
246246
*hidden API method, expected to be used from Helper classes*
247247

248248
Change capabilities of WebDriver. Should be executed before starting a new browser session.
249-
This method expects a function to be passed which returns array or [WebDriver Desired Capabilities](https://github.com/facebook/php-webdriver/blob/community/lib/Remote/DesiredCapabilities.php) object.
250-
Additional [Chrome options](https://github.com/facebook/php-webdriver/wiki/ChromeOptions) (like adding extensions) can be passed as well.
249+
This method expects a function to be passed which returns array or [WebDriver Desired Capabilities](https://github.com/php-webdriver/php-webdriver/blob/community/lib/Remote/DesiredCapabilities.php) object.
250+
Additional [Chrome options](https://github.com/php-webdriver/php-webdriver/wiki/ChromeOptions) (like adding extensions) can be passed as well.
251251

252252
```php
253253
<?php // in helper
@@ -969,7 +969,7 @@ $I->executeInSelenium(function(\Facebook\WebDriver\Remote\RemoteWebDriver $webdr
969969
```
970970

971971
This runs in the context of the
972-
[RemoteWebDriver class](https://github.com/facebook/php-webdriver/blob/master/lib/remote/RemoteWebDriver.php).
972+
[RemoteWebDriver class](https://github.com/php-webdriver/php-webdriver/blob/master/lib/remote/RemoteWebDriver.php).
973973
Try not to use this command on a regular basis.
974974
If Codeception lacks a feature you need, please implement it and submit a patch.
975975

src/Codeception/Module/WebDriver.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ class WebDriver extends CodeceptionModule implements
335335

336336
public function _requires()
337337
{
338-
return ['Facebook\WebDriver\Remote\RemoteWebDriver' => '"facebook/webdriver": "^1.0.1"'];
338+
return ['Facebook\WebDriver\Remote\RemoteWebDriver' => '"php-webdriver/webdriver": "^1.0.1"'];
339339
}
340340

341341
/**
@@ -365,8 +365,8 @@ public function _initialize()
365365

366366
/**
367367
* Change capabilities of WebDriver. Should be executed before starting a new browser session.
368-
* This method expects a function to be passed which returns array or [WebDriver Desired Capabilities](https://github.com/facebook/php-webdriver/blob/community/lib/Remote/DesiredCapabilities.php) object.
369-
* Additional [Chrome options](https://github.com/facebook/php-webdriver/wiki/ChromeOptions) (like adding extensions) can be passed as well.
368+
* This method expects a function to be passed which returns array or [WebDriver Desired Capabilities](https://github.com/php-webdriver/php-webdriver/blob/community/lib/Remote/DesiredCapabilities.php) object.
369+
* Additional [Chrome options](https://github.com/php-webdriver/php-webdriver/wiki/ChromeOptions) (like adding extensions) can be passed as well.
370370
*
371371
* ```php
372372
* <?php // in helper
@@ -2464,7 +2464,7 @@ public function wait($timeout)
24642464
* ```
24652465
*
24662466
* This runs in the context of the
2467-
* [RemoteWebDriver class](https://github.com/facebook/php-webdriver/blob/master/lib/remote/RemoteWebDriver.php).
2467+
* [RemoteWebDriver class](https://github.com/php-webdriver/php-webdriver/blob/master/lib/remote/RemoteWebDriver.php).
24682468
* Try not to use this command on a regular basis.
24692469
* If Codeception lacks a feature you need, please implement it and submit a patch.
24702470
*
@@ -3122,14 +3122,14 @@ public function loadSessionSnapshot($name)
31223122
if (!isset($this->sessionSnapshots[$name])) {
31233123
return false;
31243124
}
3125-
3125+
31263126
foreach ($this->webDriver->manage()->getCookies() as $cookie) {
31273127
if (in_array(trim($cookie['name']), [LocalServer::COVERAGE_COOKIE, LocalServer::COVERAGE_COOKIE_ERROR])) {
31283128
continue;
31293129
}
31303130
$this->webDriver->manage()->deleteCookieNamed($cookie['name']);
31313131
}
3132-
3132+
31333133
foreach ($this->sessionSnapshots[$name] as $cookie) {
31343134
$this->setCookie($cookie['name'], $cookie['value'], (array)$cookie, false);
31353135
}

0 commit comments

Comments
 (0)