Skip to content

Commit

Permalink
fix the namespace to RemoteWebDriver in the executeInSelenium() refer…
Browse files Browse the repository at this point in the history
…ences
  • Loading branch information
ashnazg committed Dec 30, 2015
1 parent a687fba commit 8befc37
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/modules/WebDriver.md
Expand Up @@ -561,7 +561,7 @@ Low-level API method.
If Codeception commands are not enough, this allows you to use Selenium WebDriver methods directly:

``` php
$I->executeInSelenium(function(\Facebook\WebDriver\RemoteWebDriver $webdriver) {
$I->executeInSelenium(function(\Facebook\WebDriver\Remote\RemoteWebDriver $webdriver) {
$webdriver->get('http://google.com');
});
```
Expand Down Expand Up @@ -1360,7 +1360,7 @@ If the window has no name, the only way to access it is via the `executeInSeleni

``` php
<?php
$I->executeInSelenium(function (\Facebook\WebDriver\RemoteWebDriver $webdriver) {
$I->executeInSelenium(function (\Facebook\WebDriver\Remote\RemoteWebDriver $webdriver) {
$handles=$webdriver->getWindowHandles();
$last_window = end($handles);
$webdriver->switchTo()->window($last_window);
Expand Down
4 changes: 2 additions & 2 deletions src/Codeception/Module/WebDriver.php
Expand Up @@ -1763,7 +1763,7 @@ public function wait($timeout)
* If Codeception commands are not enough, this allows you to use Selenium WebDriver methods directly:
*
* ``` php
* $I->executeInSelenium(function(\Facebook\WebDriver\RemoteWebDriver $webdriver) {
* $I->executeInSelenium(function(\Facebook\WebDriver\Remote\RemoteWebDriver $webdriver) {
* $webdriver->get('http://google.com');
* });
* ```
Expand Down Expand Up @@ -1803,7 +1803,7 @@ public function executeInSelenium(\Closure $function)
*
* ``` php
* <?php
* $I->executeInSelenium(function (\Facebook\WebDriver\RemoteWebDriver $webdriver) {
* $I->executeInSelenium(function (\Facebook\WebDriver\Remote\RemoteWebDriver $webdriver) {
* $handles=$webdriver->getWindowHandles();
* $last_window = end($handles);
* $webdriver->switchTo()->window($last_window);
Expand Down

0 comments on commit 8befc37

Please sign in to comment.