diff --git a/index.js b/index.js index 93e758e..e29e366 100644 --- a/index.js +++ b/index.js @@ -165,7 +165,7 @@ ChromeBrowser.prototype = { ChromeBrowser.$inject = ['baseBrowserDecorator', 'args'] function headlessGetOptions (url, args, parent) { - return parent.call(this, url, args).concat(['--headless', '--disable-gpu', '--remote-debugging-port=9222']) + return parent.call(this, url, args).concat(['--headless', '--disable-gpu', '--remote-debugging-port=9222', '--proxy-server="direct://"', '--proxy-bypass-list=*']) } var ChromeHeadlessBrowser = function (baseBrowserDecorator, args) { diff --git a/test/jsflags.spec.js b/test/jsflags.spec.js index 0fe85ee..f663f5e 100644 --- a/test/jsflags.spec.js +++ b/test/jsflags.spec.js @@ -66,7 +66,9 @@ describe('headlessGetOptions', function () { '-incognito', '--headless', '--disable-gpu', - '--remote-debugging-port=9222' + '--remote-debugging-port=9222', + '--proxy-server="direct://"', + '--proxy-bypass-list=*' ]) }) })