-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnightwatch.conf.js
66 lines (59 loc) · 1.65 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
var SELENIUM_CONFIGURATION_WINDOWS = {
start_process: true,
server_path: 'source/selenium-server-standalone-3.5.2.jar',
host: '127.0.0.1',
port: 4444,
cli_args : {
"webdriver.chrome.driver" : "source/chromedriver.exe",
"webdriver.gecko.driver" : "source/geckodriver.exe",
"webdriver.edge.driver" : "source/MicrosoftWebDriver.exe"
}
};
var SELENIUM_CONFIGURATION_LINUX = {
start_process: true,
server_path: 'source/selenium-server-standalone-3.5.2.jar',
host: '127.0.0.1',
port: 4444,
cli_args : {
"webdriver.chrome.driver" : "source/chromedriver",
"webdriver.gecko.driver" : "source/geckodriver"
}
};
var SELENIUM_CONFIGURATION_MACOS = {
start_process: true,
server_path: 'source/selenium-server-standalone-3.5.2.jar',
host: '127.0.0.1',
port: 4444,
cli_args : {
"webdriver.chrome.driver" : "source/macos/chromedriver",
"webdriver.gecko.driver" : "source/macos/geckodriver"
}
};
var FIREFOX_CONFIGURATION = {
browserName: 'firefox',
javascriptEnabled: true,
acceptSslCerts: true
};
var CHROME_CONFIGURATION = {
browserName: 'chrome',
javascriptEnabled: true,
acceptSslCerts: true,
chromeOptions : {
args : ["start-fullscreen"]
}
};
var DEFAULT_CONFIGURATION = {
launch_url: 'https://github.com',
selenium_port: 4444,
selenium_host: 'localhost',
desiredCapabilities: CHROME_CONFIGURATION
};
var ENVIRONMENTS = {
default: DEFAULT_CONFIGURATION
};
module.exports = {
src_folders: ['tests'],
page_objects_path: ['pages'],
selenium: SELENIUM_CONFIGURATION_WINDOWS,
test_settings: ENVIRONMENTS
};