Skip to content

Commit

Permalink
[JS] remove --disable-gpu option for headless Chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
cgoldberg committed Feb 18, 2019
1 parent 1784f19 commit 97f4e20
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions javascript/node/selenium-webdriver/chrome.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@
* __Headless Chrome__ <a id="headless"></a>
*
* To start Chrome in headless mode, simply call
* {@linkplain Options#headless Options.headless()}. Note, starting in headless
* mode currently also disables GPU acceleration.
* {@linkplain Options#headless Options.headless()}.
*
* let chrome = require('selenium-webdriver/chrome');
* let {Builder} = require('selenium-webdriver');
Expand Down Expand Up @@ -379,9 +378,7 @@ class Options extends Capabilities {
* @return {!Options} A self reference.
*/
headless() {
// TODO(jleyba): Remove `disable-gpu` once head Chrome no longer requires
// that to be set.
return this.addArguments('headless', 'disable-gpu');
return this.addArguments('headless');
}

/**
Expand Down

0 comments on commit 97f4e20

Please sign in to comment.