Skip to content

Instantly share code, notes, and snippets.

@seleniumgists
Created September 10, 2020 00:37
Show Gist options
  • Save seleniumgists/2e731ffc910a759f052a84d8332220a3 to your computer and use it in GitHub Desktop.
Save seleniumgists/2e731ffc910a759f052a84d8332220a3 to your computer and use it in GitHub Desktop.
generated automatically from #selenium on seleniumhq slack
let chrome = require("selenium-webdriver/chrome");
let options = new chrome.Options();
options.addExtensions("/path/to/build.crx")
let driver = new webdriver.Builder()
.forBrowser('chrome')
.setChromeOptions(options)
.build();```
```selenium_1 | console.error node_modules/jest-jasmine2/build/jasmine/Env.js:290
selenium_1 | SessionNotCreatedError: Unable to create session for <CreateSessionRequest with Capabilities {browserName: chrome, goog:chromeOptions: {extensions: [build.crx]}}>
selenium_1 | Build info: version: '4.0.0-alpha-7', revision: '117b9d61c9'
selenium_1 | System info: host: '221c64ad3c45', ip: '172.19.0.2', os.name: 'Linux', os.arch: 'amd64', os.version: '4.19.76-linuxkit', java.version: '1.8.0_265'
selenium_1 | Driver info: driver.version: unknown
selenium_1 | at Object.throwDecodedError (/app/node_modules/selenium-webdriver/lib/error.js:550:15)
selenium_1 | at parseHttpResponse (/app/node_modules/selenium-webdriver/lib/http.js:565:13)
selenium_1 | at Executor.execute (/app/node_modules/selenium-webdriver/lib/http.js:491:26)
selenium_1 | at processTicksAndRejections (internal/process/task_queues.js:97:5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment