Skip to content

Instantly share code, notes, and snippets.

@remarkablemark
Last active September 8, 2019 02:47
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save remarkablemark/e56ce969c4d5fe81f7a639f519cb417b to your computer and use it in GitHub Desktop.
{
"scripts": {
"start": "node webdriverjs-set-binary"
},
"dependencies": {
"selenium-webdriver": "^3.6.0"
},
"engines": {
"node": ">=8",
"npm": ">=6"
}
}
const { Builder } = require('selenium-webdriver');
const { Options } = require('selenium-webdriver/firefox');
// replace `path/to/binary` with your binary path
const options = new Options().setBinary('path/to/binary');
const driver = new Builder()
.forBrowser('firefox')
.setFirefoxOptions(options)
.build();
driver.sleep(3000);
driver.quit();
@DollarAkshay
Copy link

not working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment