mirror of
https://github.com/lovasoa/whitebophir
synced 2024-11-14 00:07:07 +00:00
45 lines
941 B
JavaScript
45 lines
941 B
JavaScript
// Autogenerated by Nightwatch
|
|
// Refer to the online docs for more details: https://nightwatchjs.org/gettingstarted/configuration/
|
|
const Services = {}; loadServices();
|
|
|
|
module.exports = {
|
|
"src_folders": ["tests"],
|
|
|
|
"webdriver": {
|
|
"start_process": true,
|
|
"server_path": "./node_modules/.bin/geckodriver",
|
|
"cli_args": [
|
|
"--log", "debug"
|
|
],
|
|
"port": 4444
|
|
},
|
|
|
|
"test_settings": {
|
|
"default": {
|
|
"desiredCapabilities": {
|
|
"browserName": "firefox",
|
|
"acceptInsecureCerts": true,
|
|
"alwaysMatch": {
|
|
"moz:firefoxOptions": {
|
|
"args": ["-headless"]
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|
|
};
|
|
|
|
function loadServices() {
|
|
try {
|
|
Services.seleniumServer = require('selenium-server');
|
|
} catch (err) { }
|
|
|
|
try {
|
|
Services.chromedriver = require('chromedriver');
|
|
} catch (err) { }
|
|
|
|
try {
|
|
Services.geckodriver = require('geckodriver');
|
|
} catch (err) { }
|
|
}
|