1 // Refer to the online docs for more details: https://nightwatchjs.org/gettingstarted/configuration/
2 const Services = {}; loadServices();
5 // | \ | |(_) | | | | | | | |
6 // | \| | _ __ _ | |__ | |_ __ __ __ _ | |_ ___ | |__
7 // | . ` || | / _` || '_ \ | __|\ \ /\ / / / _` || __| / __|| '_ \
8 // | |\ || || (_| || | | || |_ \ V V / | (_| || |_ | (__ | | | |
9 // \_| \_/|_| \__, ||_| |_| \__| \_/\_/ \__,_| \__| \___||_| |_|
14 // An array of folders (excluding subfolders) where your tests are located;
15 // if this is not specified, the test source must be passed as the second argument to the test runner.
16 src_folders: ['nightwatch/src'],
18 filter: ['**/*.spec.ts'],
20 // See https://nightwatchjs.org/guide/working-with-page-objects/
21 page_objects_path: ['nightwatch/pages/**'],
23 // See https://nightwatchjs.org/guide/extending-nightwatch/#writing-custom-commands
24 custom_commands_path: '',
26 // See https://nightwatchjs.org/guide/extending-nightwatch/#writing-custom-assertions
27 custom_assertions_path: '',
29 // See https://nightwatchjs.org/guide/#external-globals
36 disable_error_log: false,
37 launch_url: 'https://localhost',
45 desiredCapabilities: {
46 browserName : 'firefox',
47 acceptInsecureCerts: true
57 desiredCapabilities : {
58 browserName : 'firefox',
60 acceptInsecureCerts: true,
61 'moz:firefoxOptions': {
73 // very verbose geckodriver logs
78 // To test with chrome:
79 // $ npm install --save-dev chromedriver
80 // $ ng e2e --env chrome
82 desiredCapabilities : {
83 browserName : 'chrome',
85 acceptInsecureCerts: true,
95 // $ ng e2e --env chrome-headless
97 desiredCapabilities : {
98 browserName : 'chrome',
100 acceptInsecureCerts: true,
103 args: ['headless', 'no-sandbox', 'disable-gpu']
106 args: ['headless', 'no-sandbox', 'disable-gpu']
119 function loadServices() {
121 Services.seleniumServer = require('selenium-server');
125 Services.chromedriver = require('chromedriver');
129 Services.geckodriver = require('geckodriver');