Skip to content

Commit

Permalink
Document setup using Geckodriver
Browse files Browse the repository at this point in the history
* Update WebDriver.php

Adding GeckoDriver standalone.

Question: What is `path` in module config? It's not mentioned at https://codeception.com/docs/modules/WebDriver#Configuration. But in my case it was indeed necessary to add it - I got the hint from mozilla/geckodriver#1694 (comment)

* Update WebDriver.php
  • Loading branch information
ThomasLandauer authored Nov 16, 2020
1 parent 1022e94 commit 23f5ee7
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion src/Codeception/Module/WebDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
*
* ### ChromeDriver
*
* To run tests in Chrome browser you may connect to ChromeDriver directly, without using Selenium Server.
* To run tests in Chrome/Chromium you may connect to ChromeDriver directly, without using Selenium Server.
*
* 1. Install [ChromeDriver](https://sites.google.com/a/chromium.org/chromedriver/getting-started).
* 2. Launch ChromeDriver: `chromedriver --url-base=/wd/hub`
Expand All @@ -104,6 +104,24 @@
*
* Additional [Chrome options](https://sites.google.com/a/chromium.org/chromedriver/capabilities) can be set in `goog:chromeOptions` capabilities. Note that Selenium 3.8 renamed this capability from `chromeOptions` to `goog:chromeOptions`.
*
* ### GeckoDriver
*
* To run tests in Firefox you may connect to GeckoDriver directly, without using Selenium Server.
*
* 1. Install [GeckoDriver](https://github.com/mozilla/geckodriver).
* 2. Launch GeckoDriver: `geckodriver`
* 3. Configure this module:
*
* ```yaml
* modules:
* enabled:
* - WebDriver:
* url: 'http://localhost/'
* browser: firefox
* path: ''
* capabilities:
* acceptInsecureCerts: true # allow self-signed certificates
* ```
*
* ### PhantomJS
*
Expand Down

0 comments on commit 23f5ee7

Please sign in to comment.