Skip to content

Commit

Permalink
Andrerleao patch 4 plugin wdio cannot install selenium (codeceptjs#2687)
Browse files Browse the repository at this point in the history
* Fix:Data().Scenario().injectDependencies() is not a function

Fix: "TypeError: scenario.injectDependencies is not a function" on use Data().Scenario().injectDependencies() or Data().Scenario().inject();

* Add files via upload

* Update Appium.js

async sendWinAppDriverKeys(unicode_char) only for Windows to send UNICODE_CHARACTER Key to route session/:session_id/keys with body: { value: [UNICODE_CHARACTER]}.

* revert appium teste win

* add options "seleniumInstallArgs" and "seleniumArgs" when using webdriverio v6.
  • Loading branch information
andrerleao authored Dec 12, 2020
1 parent b03ef33 commit 02d5810
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/plugin/wdio.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ module.exports = (config) => {
restartsSession = !!config.restart;
}
config = Object.assign(defaultConfig, config);
const seleniumInstallArgs = Object.assign({}, config.seleniumInstallArgs);
const seleniumArgs = Object.assign({}, config.seleniumArgs);

const services = [];
const launchers = [];
Expand All @@ -106,7 +108,7 @@ module.exports = (config) => {
if (version.indexOf('5') === 0) {
launchers.push(new Launcher(config));
} else {
const options = { logPath: global.output_dir, installArgs: {}, args: {} };
const options = { logPath: global.output_dir, installArgs: seleniumInstallArgs, args: seleniumArgs };
launchers.push(new Launcher(options, [config.capabilities], config));
}
}
Expand Down

0 comments on commit 02d5810

Please sign in to comment.