-
Notifications
You must be signed in to change notification settings - Fork 0
/
nightwatch.conf.js
88 lines (86 loc) · 2.19 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
module.exports = {
nightwatchOutput: true,
live_output: true,
disable_colors: false,
output_folder: "",
custom_commands_path: "",
page_objects_path: "",
globals_path: "",
test_workers: {
enabled: false,
workers: "auto"
},
webdriver: {
start_process: true,
server_path: require('selenium-webdriver').path,
log_path: "./",
host: "127.0.0.1",
port: 4444,
cli_args: {
"webdriver.chrome.driver": "binaries/windows/chromedriver.exe",
}
},
// selenium: {
// start_process: true,
// version2:false,
// server_path: "binaries/windows/selenium-server-standalone-4.0.0-alpha-2.jar",
// log_path: "./",
// host: "127.0.0.1",
// port: 4444,
// cli_args: {
// "webdriver.chrome.driver": "binaries/windows/chromedriver.exe",
// }
// },
test_settings: {
default: {
launch_url: "http://localhost",
"selenium.host": "127.0.0.1",
"selenium.port": 4444,
silent: true,
disable_colors: false,
skip_testcases_on_fail: false,
end_session_on_fail: false,
screenshots: {
enabled: true,
on_failure: true,
on_error: true,
path: "./screenshots"
},
desiredCapabilities: {
browserName: "chrome",
javascriptEnabled: true,
acceptSslCerts: true
}
},
chrome: {
desiredCapabilities: {
browserName: "chrome",
javascriptEnabled: true,
acceptSslCerts: true,
elementScrollBehavior: 1,
chromeOptions: {
args: [
"--allow-cross-origin-auth-prompt",
"--allow-control-allow-origin",
"-–allow-file-access-from-files",
"--test-type",
"disable-infobars",
"--disable-extensions",
"--start-maximized",
"--lang=en"
],
prefs: {
credentials_enable_service: false,
profile: { password_manager_enabled: false },
extentions: {},
download: {
'prompt_for_download': false,
'directory_upgrade': true,
'default_directory': '/downloads',
}
}
}
}
},
}
};