Last active
January 7, 2019 11:42
-
-
Save artemave/42b1e9ca594473c7dd8c9fe3a427350d to your computer and use it in GitHub Desktop.
Set Webdriver `user-data-dir` to keep breakpoints between test runs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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