Skip to content

Feature: allow external driver to be passed in#177

Merged
grawk merged 18 commits intorename/nemo-corefrom
feature/external.driver
Jul 10, 2018
Merged

Feature: allow external driver to be passed in#177
grawk merged 18 commits intorename/nemo-corefrom
feature/external.driver

Conversation

@grawk
Copy link
Collaborator

@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.

2 participants