commit | author | age
|
0bd33d
|
1 |
var seleniumServer = require('selenium-server'); |
JK |
2 |
var chromedriver = require('chromedriver'); |
|
3 |
var geckodriver = require('geckodriver'); |
|
4 |
|
|
5 |
module.exports = { |
|
6 |
src_folders: ['tests'], |
|
7 |
selenium: { |
|
8 |
start_process: true, |
|
9 |
server_path: seleniumServer.path, |
|
10 |
port: 4444, |
|
11 |
cli_args: { |
|
12 |
'webdriver.chrome.driver': chromedriver.path, |
|
13 |
'webdriver.gecko.driver': geckodriver.path, |
|
14 |
}, |
|
15 |
}, |
|
16 |
test_settings: { |
|
17 |
'chrome': { |
|
18 |
desiredCapabilities: { |
|
19 |
browserName: 'chrome', |
|
20 |
}, |
|
21 |
}, |
|
22 |
'chrome-headless': { |
|
23 |
desiredCapabilities: { |
|
24 |
browserName: 'chrome', |
|
25 |
chromeOptions: { |
|
26 |
args: [ |
|
27 |
'--headless', |
|
28 |
'--no-sandbox', |
|
29 |
'--disable-gpu', |
|
30 |
], |
|
31 |
}, |
|
32 |
}, |
|
33 |
}, |
|
34 |
'firefox': { |
|
35 |
desiredCapabilities: { |
|
36 |
browserName: 'firefox', |
|
37 |
}, |
|
38 |
}, |
|
39 |
'firefox-headless': { |
|
40 |
desiredCapabilities: { |
|
41 |
browserName: 'firefox', |
|
42 |
'moz:firefoxOptions': { |
|
43 |
args: [ |
|
44 |
'--headless', |
|
45 |
], |
|
46 |
}, |
|
47 |
}, |
|
48 |
}, |
|
49 |
}, |
|
50 |
}; |