| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179 | // Autogenerated by Nightwatch// Refer to the online docs for more details: https://nightwatchjs.org/gettingstarted/configuration/const Services = {}; loadServices();module.exports = {  // An array of folders (excluding subfolders) where your tests are located;  // if this is not specified, the test source must be passed as the second argument to the test runner.  src_folders: [],  // See https://nightwatchjs.org/guide/working-with-page-objects/  page_objects_path: '',  // See https://nightwatchjs.org/guide/extending-nightwatch/#writing-custom-commands  custom_commands_path:  '',  // See https://nightwatchjs.org/guide/extending-nightwatch/#writing-custom-assertions  custom_assertions_path: '',  // See https://nightwatchjs.org/guide/#external-globals  globals_path : '',  webdriver: {},  test_settings: {    default: {      disable_error_log: false,      launch_url: 'http://localhost:5000',      screenshots: {        enabled: false,        path: 'screens',        on_failure: true      },      desiredCapabilities: {        browserName : 'firefox'      },      webdriver: {        start_process: true,        server_path: (Services.geckodriver ? Services.geckodriver.path : '')      }    },    safari: {      desiredCapabilities : {        browserName : 'safari',        alwaysMatch: {          acceptInsecureCerts: false        }      },      webdriver: {        port: 4445,        start_process: true,        server_path: '/usr/bin/safaridriver'      }    },    firefox: {      desiredCapabilities : {        browserName : 'firefox',        alwaysMatch: {          // Enable this if you encounter unexpected SSL certificate errors in Firefox          // acceptInsecureCerts: true,          'moz:firefoxOptions': {            args: [              // '-headless',              // '-verbose'            ],          }        }      },      webdriver: {        start_process: true,        port: 5555,        server_path: (Services.geckodriver ? Services.geckodriver.path : ''),        cli_args: [          // very verbose geckodriver logs          // '-vv'          '--port',          '5555'        ]      }    },    chrome: {      desiredCapabilities : {        browserName : 'chrome',        chromeOptions : {          // This tells Chromedriver to run using the legacy JSONWire protocol (not required in Chrome 78)          // w3c: false,          // More info on Chromedriver: https://sites.google.com/a/chromium.org/chromedriver/          args: [            //'--no-sandbox',            //'--ignore-certificate-errors',            //'--allow-insecure-localhost',            //'--headless'          ]        }      },      webdriver: {        start_process: true,        port: 9515,        server_path: (Services.chromedriver ? Services.chromedriver.path : ''),        cli_args: [          // --verbose        ]      }    },    //////////////////////////////////////////////////////////////////////////////////    // Configuration for when using the Selenium service, either locally or remote,  |    //  like Selenium Grid                                                           |    //////////////////////////////////////////////////////////////////////////////////    selenium: {      // Selenium Server is running locally and is managed by Nightwatch      selenium: {        start_process: true,        port: 4444,        server_path: (Services.seleniumServer ? Services.seleniumServer.path : ''),        cli_args: {          'webdriver.gecko.driver': (Services.geckodriver ? Services.geckodriver.path : ''),          'webdriver.chrome.driver': (Services.chromedriver ? Services.chromedriver.path : ''),          'webdriver.ie.driver': (Services.iedriver ? Services.iedriver.path : '')        }      }    },    'selenium.chrome': {      extends: 'selenium',      desiredCapabilities: {        browserName: 'chrome',        chromeOptions : {          w3c: false        }      }    },    'selenium.firefox': {      extends: 'selenium',      desiredCapabilities: {        browserName: 'firefox',        'moz:firefoxOptions': {          args: [            // '-headless',            // '-verbose'          ]        }      }    },    'ie': {      extends: 'selenium',      desiredCapabilities: {        browserName: 'internet explorer'      }    },  }};function loadServices() {  try {    Services.seleniumServer = require('selenium-server');  } catch (err) {}  try {    Services.chromedriver = require('chromedriver');  } catch (err) {}  try {    Services.geckodriver = require('geckodriver');  } catch (err) {}  try {    Services.iedriver = require('iedriver');  } catch (err) {}}
 |