NWJS_Hour_Tracking/nightwatch.conf.js

22 lines
605 B
JavaScript
Raw Normal View History

2019-07-08 07:32:03 -06:00
// eslint-disable-next-line no-unused-vars
let nwBinary = 'nwjs/nw.exe';
let driver = 'nwjs/chromedriver.exe';
if (process.platform === 'linux') {
nwBinary = 'nwjs/nw';
driver = 'nwjs/chromedriver';
}
if (process.platform === 'darwin') {
nwBinary = 'nwjs.app/contents/MacOS/nwjs';
driver = 'chromedriver';
}
nwBinary = './node_modules/nw/' + nwBinary;
driver = './node_modules/nw/' + driver;
module.exports = (function (settings) {
settings.webdriver.server_path = driver;
settings.selenium.cli_args['webdriver.chrome.driver'] = driver;
return settings;
})(require('./nightwatch.json'));