Skip to content

Commit

Permalink
Forces headless mode for Chrome.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffposnick committed Jun 23, 2017
1 parent 7540da3 commit b0fa8cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/webdriver-config/chrome.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ class ChromeConfig extends DriverConfig {
constructor() {
super(
'chrome',
new seleniumChrome.Options(),
// See https://developers.google.com/web/updates/2017/04/headless-chrome
new seleniumChrome.Options().addArguments('--headless', '--disable-gpu'),
'Google Chrome',
'chromedriver'
);
Expand Down

0 comments on commit b0fa8cf

Please sign in to comment.