-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnightwatch.conf.js
40 lines (39 loc) · 1.03 KB
/
nightwatch.conf.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
const chromeDriver = require('chromedriver');
const geckoDriver = require('geckodriver');
module.exports = {
src_folders: ["steps"],
test_settings: {
default: {
webdriver: {
start_process: true,
server_path: chromeDriver.path,
port: 4444
},
desiredCapabilities: {
browserName: 'chrome',
chromeOptions: {
"args": [
"--user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.79 Safari/537.36",
]
}
}
},
firefox: {
webdriver: {
server_path: geckoDriver.path,
port: 4444
},
desiredCapabilities: {
browserName: 'firefox',
alwaysMatch: {
'moz:firefoxOptions': {
prefs: {
'general.useragent.override': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.79 Safari/537.36',
},
},
},
marionette: true
}
}
}
};