Use more good flags to run chrome instance.

The switches are mostly borrowed from chromedriver launching code.
This commit is contained in:
Andrey Lushnikov 2017-07-20 12:20:10 -07:00
parent a981594b1d
commit 4af0911b90

View File

@ -28,9 +28,21 @@ let CHROME_PROFILE_PATH = path.resolve(__dirname, '..', '.dev_profile');
let browserId = 0;
let DEFAULT_ARGS = [
'--disable-background-networking',
'--disable-background-timer-throttling',
'--disable-client-side-phishing-detection',
'--disable-default-apps',
'--disable-hang-monitor',
'--disable-popup-blocking',
'--disable-prompt-on-repost',
'--disable-sync',
'--enable-automation',
'--metrics-recording-only',
'--no-first-run',
'--password-store=basic',
'--remote-debugging-port=0',
'--safebrowsing-disable-auto-update',
'--use-mock-keychain',
];
class Browser {