Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: allow external driver to be passed in #177

Merged
merged 18 commits into from Jul 10, 2018

Conversation

grawk
Copy link
Member

@grawk grawk commented Jul 7, 2018

External Driver

Allow an external driver to be passed in. allows full driver customization, not constrained by the internal create method.

Specify via config as:

{
  "driver": "require:./myDriver"
}
...

Example of myDriver.js:

const {Builder} = require('selenium-webdriver');
const {Options} = require('selenium-webdriver/chrome');

module.exports = function () {
  let copts = new Options().setMobileEmulation({deviceName: 'Nexus 5X'}).setChromeBinaryPath('/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome');
  let driver = new Builder()
    .forBrowser('chrome')
    .setChromeOptions(
      copts)
    .build();
  return driver;
}

@grawk grawk changed the title Features: prepend handler keys with _ and external driver Feature: allow external driver to be passed in Jul 10, 2018
@grawk grawk merged commit f2a3558 into rename/nemo-core Jul 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants