Skip to content

Commit

Permalink
use --sand-box args with chrome for some docker leak of privilidge
Browse files Browse the repository at this point in the history
  • Loading branch information
huan committed Aug 29, 2016
1 parent 25cd6e7 commit 4fbee4a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/puppet-web/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,12 @@ class Browser extends EventEmitter {
}

getChromeDriver() {
const options = {
args: ['--no-sandbox']
}
const customChrome = WebDriver.Capabilities.chrome()
.set('webdriver.chrome.args', '--no-sandbox')
// .set('webdriver.chrome.args', '--no-sandbox')
.set('chromeOptions', options)

return new WebDriver.Builder()
.setAlertBehavior('ignore')
Expand Down

0 comments on commit 4fbee4a

Please sign in to comment.