Skip to content

Commit 23f5ee7

Browse files
Document setup using Geckodriver
* 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
1 parent 1022e94 commit 23f5ee7

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

src/Codeception/Module/WebDriver.php

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
*
8585
* ### ChromeDriver
8686
*
87-
* To run tests in Chrome browser you may connect to ChromeDriver directly, without using Selenium Server.
87+
* To run tests in Chrome/Chromium you may connect to ChromeDriver directly, without using Selenium Server.
8888
*
8989
* 1. Install [ChromeDriver](https://sites.google.com/a/chromium.org/chromedriver/getting-started).
9090
* 2. Launch ChromeDriver: `chromedriver --url-base=/wd/hub`
@@ -104,6 +104,24 @@
104104
*
105105
* 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`.
106106
*
107+
* ### GeckoDriver
108+
*
109+
* To run tests in Firefox you may connect to GeckoDriver directly, without using Selenium Server.
110+
*
111+
* 1. Install [GeckoDriver](https://github.com/mozilla/geckodriver).
112+
* 2. Launch GeckoDriver: `geckodriver`
113+
* 3. Configure this module:
114+
*
115+
* ```yaml
116+
* modules:
117+
* enabled:
118+
* - WebDriver:
119+
* url: 'http://localhost/'
120+
* browser: firefox
121+
* path: ''
122+
* capabilities:
123+
* acceptInsecureCerts: true # allow self-signed certificates
124+
* ```
107125
*
108126
* ### PhantomJS
109127
*

0 commit comments

Comments
 (0)