Improved www.ttss.krakow.pl
Jacek Kowalski
2020-11-02 08514a8ed6a4e7f543078a19271cb0546532e35d
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     },
564d29 15     check_process_delay: 5000,
0bd33d 16   },
JK 17   test_settings: {
18     'chrome': {
19       desiredCapabilities: {
20         browserName: 'chrome',
21       },
22     },
23     'chrome-headless': {
24       desiredCapabilities: {
25         browserName: 'chrome',
26         chromeOptions: {
27           args: [
28             '--headless',
29             '--no-sandbox',
30             '--disable-gpu',
31           ],
32         },
33       },
34     },
35     'firefox': {
36       desiredCapabilities: {
37         browserName: 'firefox',
38       },
39     },
40     'firefox-headless': {
41       desiredCapabilities: {
42         browserName: 'firefox',
43         'moz:firefoxOptions': {
44           args: [
45             '--headless',
46           ],
47         },
48       },
49     },
50   },
51 };