Skip to content

Commit

Permalink
Reorganize the docs about setup
Browse files Browse the repository at this point in the history
Reorganizing the docs about setup. First step of what I suggested at #30 (comment)
  • Loading branch information
ThomasLandauer authored Nov 16, 2020
1 parent 0aae617 commit 1022e94
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/Codeception/Module/WebDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,24 @@
use Facebook\WebDriver\WebDriverSelect;

/**
* New generation Selenium WebDriver module.
* Run tests in real browsers using the W3C [WebDriver protocol](https://www.w3.org/TR/webdriver/).
*
* ## Local Testing
*
* ### Browsers: Chrome and/or Firefox
*
* First, you need to install the browser itself: Chrome and/or Firefox.
* * To run tests in Chrome/Chromium, you need to install [ChromeDriver](https://sites.google.com/a/chromium.org/chromedriver/getting-started).
* * To use Firefox, install [GeckoDriver](https://github.com/mozilla/geckodriver).
* If you want to use both, consider setting up a dedicated [Codeception environment](https://codeception.com/docs/07-AdvancedUsage#Environments) for each.
*
* ### Selenium
*
* To run Selenium Server you need [Java](https://www.java.com/) as well as Chrome or Firefox browser installed.
*
* 1. Download [Selenium Standalone Server](http://docs.seleniumhq.org/download/)
* 2. To use Chrome, install [ChromeDriver](https://sites.google.com/a/chromium.org/chromedriver/getting-started). To use Firefox, install [GeckoDriver](https://github.com/mozilla/geckodriver).
* 3. Launch the Selenium Server: `java -jar selenium-server-standalone-3.xx.xxx.jar`. To locate Chromedriver binary use `-Dwebdriver.chrome.driver=./chromedriver` option. For Geckodriver use `-Dwebdriver.gecko.driver=./geckodriver`.
* 4. Configure this module (in `acceptance.suite.yml`) by setting `url` and `browser`:
* 2. Launch the Selenium Server: `java -jar selenium-server-standalone-3.xx.xxx.jar`. To locate Chromedriver binary use `-Dwebdriver.chrome.driver=./chromedriver` option. For Geckodriver use `-Dwebdriver.gecko.driver=./geckodriver`.
* 3. Configure this module (in `acceptance.suite.yml`) by setting `url` and `browser`:
*
* ```yaml
* modules:
Expand Down

0 comments on commit 1022e94

Please sign in to comment.