From 68be0908ed0a6e2be98b8a39ca459581b3e973ea Mon Sep 17 00:00:00 2001 From: Vorobeyko Date: Fri, 22 Feb 2019 15:06:09 +0300 Subject: [PATCH 1/3] Add doc for IE 11 --- lib/helper/WebDriver.js | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/lib/helper/WebDriver.js b/lib/helper/WebDriver.js index 64cabb5ba..78e27eac1 100644 --- a/lib/helper/WebDriver.js +++ b/lib/helper/WebDriver.js @@ -99,6 +99,26 @@ const webRoot = 'body'; * } * ``` * + * ### Internet Explorer + * + * ```json + * { + * "helpers": { + * "WebDriver" : { + * "url": "http://localhost", + * "browser": "internet explorer", + * "desiredCapabilities": { + * "ieOptions": { + * "ie.browserCommandLineSwitches": "-private", + * "ie.usePerProcessProxy": true, + * "ie.ensureCleanSession": true, + * } + * } + * } + * } + * } + * ``` + * * ### Connect through proxy * * CodeceptJS also provides flexible options when you want to execute tests to Selenium servers through proxy. You will @@ -284,6 +304,10 @@ class WebDriver extends Helper { config.capabilities['moz:firefoxOptions'] = config.capabilities.firefoxOptions; delete config.capabilities.firefoxOptions; } + if (config.capabilities.ieOptions) { + config.capabilities['se:ieOptions'] = config.capabilities.ieOptions; + delete config.capabilities.ieOptions; + } config.waitForTimeout /= 1000; // convert to seconds From 4089d7fce75bea2de419828574be7b521ee3c5f8 Mon Sep 17 00:00:00 2001 From: Vorobeyko Date: Fri, 22 Feb 2019 15:16:38 +0300 Subject: [PATCH 2/3] add doc for selenoid --- lib/helper/WebDriver.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/lib/helper/WebDriver.js b/lib/helper/WebDriver.js index 78e27eac1..0de1ce31b 100644 --- a/lib/helper/WebDriver.js +++ b/lib/helper/WebDriver.js @@ -119,6 +119,24 @@ const webRoot = 'body'; * } * ``` * + * ### Selenoid Options + * + * ```json + * { + * "helpers": { + * "WebDriver" : { + * "url": "http://localhost", + * "browser": "chrome", + * "desiredCapabilities": { + * "selenoidOptions": { + * "enableVNC": true, + * } + * } + * } + * } + * } + * ``` + * * ### Connect through proxy * * CodeceptJS also provides flexible options when you want to execute tests to Selenium servers through proxy. You will @@ -308,6 +326,10 @@ class WebDriver extends Helper { config.capabilities['se:ieOptions'] = config.capabilities.ieOptions; delete config.capabilities.ieOptions; } + if (config.capabilities.selenoidOptions) { + config.capabilities['selenoid:options'] = config.capabilities.selenoidOptions; + delete config.capabilities.selenoidOptions; + } config.waitForTimeout /= 1000; // convert to seconds From 3e46428145c8f56b866f80f1440cdc9da1a487cb Mon Sep 17 00:00:00 2001 From: Vorobeyko Date: Fri, 22 Feb 2019 15:18:55 +0300 Subject: [PATCH 3/3] add link --- lib/helper/WebDriver.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/helper/WebDriver.js b/lib/helper/WebDriver.js index 0de1ce31b..007db5d70 100644 --- a/lib/helper/WebDriver.js +++ b/lib/helper/WebDriver.js @@ -100,6 +100,7 @@ const webRoot = 'body'; * ``` * * ### Internet Explorer + * Additional configuration params can be used from [IE options](https://seleniumhq.github.io/selenium/docs/api/rb/Selenium/WebDriver/IE/Options.html) * * ```json * {