From 687209cac40d3261ebee994a92d9077918472bc7 Mon Sep 17 00:00:00 2001 From: Thomas Landauer Date: Sun, 1 Nov 2020 22:10:05 +0100 Subject: [PATCH 1/2] 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 https://github.com/mozilla/geckodriver/issues/1694#issuecomment-591728668 --- src/Codeception/Module/WebDriver.php | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/Codeception/Module/WebDriver.php b/src/Codeception/Module/WebDriver.php index c7f1997..6ea2740 100644 --- a/src/Codeception/Module/WebDriver.php +++ b/src/Codeception/Module/WebDriver.php @@ -78,7 +78,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` @@ -98,6 +98,22 @@ * * 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: '' + * ``` * * ### PhantomJS * From 657811fdfdd3554da70520e3c0e0291224332f35 Mon Sep 17 00:00:00 2001 From: Thomas Landauer Date: Sun, 1 Nov 2020 23:58:00 +0100 Subject: [PATCH 2/2] Update WebDriver.php --- src/Codeception/Module/WebDriver.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Codeception/Module/WebDriver.php b/src/Codeception/Module/WebDriver.php index 6ea2740..65425ca 100644 --- a/src/Codeception/Module/WebDriver.php +++ b/src/Codeception/Module/WebDriver.php @@ -113,6 +113,8 @@ * url: 'http://localhost/' * browser: firefox * path: '' + * capabilities: + * acceptInsecureCerts: true # allow self-signed certificates * ``` * * ### PhantomJS