-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnightwatch.conf.js
83 lines (82 loc) · 1.83 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
//const chromedriver = require("chromedriver");
module.exports = {
globals_path: "globals.js",
page_objects_path: "./src/page_objects", //page_objects folder where selectors are saved
test_settings: {
default: {
webdriver: {
start_process: true,
server_path: require("chromedriver").path,
port: 4444,
cli_args: ['--port=4444']
},
desiredCapabilities: {
browserName: "chrome",
javascriptEnabled: true,
acceptSslCerts: true,
chromeOptions: {
args: ['headless', 'no-sandbox', 'disable-gpu']
}
},
launch_url: "http://localhost",
screenshots: {
enabled: true,
path: "./screenshots",
},
},
sandbox: {
launch_url: "http://sandbox.breedinginsight.net/",
},
docker: {
launch_url: "http://biproxy",
},
ie: {
desiredCapabilities: {
browserName: "internet explorer",
requireWindowFocus: true,
nativeEvents: true,
},
},
firefox: {
desiredCapabilities: {
browserName: "firefox",
},
},
chrome: {
},
edge: {
selenium: {
start_process: false,
port: 9515,
},
desiredCapabilities: {
browserName: "MicrosoftEdge",
},
},
"sandbox.chrome": {
extends: "sandbox",
desiredCapabilities: {
browserName: "chrome",
chromeOptions: {
w3c: false,
},
},
},
"docker.chrome": {
extends: "docker",
desiredCapabilities: {
browserName: "chrome",
chromeOptions: {
args: ["headless", "no-sandbox", "disable-gpu"],
w3c: false,
},
},
},
"docker.firefox": {
extends: "docker",
desiredCapabilities: {
browserName: "firefox"
},
},
},
};