Skip to content

Instantly share code, notes, and snippets.

@artemave
Last active January 7, 2019 11:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save artemave/42b1e9ca594473c7dd8c9fe3a427350d to your computer and use it in GitHub Desktop.
Save artemave/42b1e9ca594473c7dd8c9fe3a427350d to your computer and use it in GitHub Desktop.
Set Webdriver `user-data-dir` to keep breakpoints between test runs
const {Builder} = require('selenium-webdriver')
const driver = new Builder()
.forBrowser('chrome')
.setChromeOptions(
new chrome.Options()
.addArguments('user-data-dir=./.webdriver-chrome-user-data')
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment