maxInstances: 1,
//
browserName: 'chrome',
- // Since Chrome v57 https://bugs.chromium.org/p/chromedriver/issues/detail?id=1625
chromeOptions: {
- args: [ '--enable-automation' ]
+ // Run headless when there is no DISPLAY
+ // --headless: since Chrome 59 https://chromium.googlesource.com/chromium/src/+/59.0.3030.0/headless/README.md
+ args: process.env.DISPLAY ? [] : [ '--headless' ]
}
} ],
//
),
//
// Default timeout for all waitFor* commands.
- waitforTimeout: 20000,
+ waitforTimeout: 10000,
//
// Default timeout in milliseconds for request
// if Selenium Grid doesn't send response