Skip to content

Commit

Permalink
Update dependencies. (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
garg3133 committed Aug 7, 2024
1 parent 90fd6d2 commit 09ec13f
Show file tree
Hide file tree
Showing 4 changed files with 4,162 additions and 2,188 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
node-version: [16.x, 18.x, 20.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
Expand Down
26 changes: 9 additions & 17 deletions nightwatch.conf.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
const Services = {}; loadServices();

// _ _ _ _ _ _ _
// | \ | |(_) | | | | | | | |
Expand Down Expand Up @@ -262,14 +261,20 @@ module.exports = {
//////////////////////////////////////////////////////////////////////////////////
selenium_server: {
// Selenium Server is running locally and is managed by Nightwatch
// Install the NPM package @nightwatch/selenium-server or download the selenium server jar file from https://github.com/SeleniumHQ/selenium/releases/, e.g.: selenium-server-4.1.1.jar
selenium: {
start_process: true,
port: 4444,
server_path: (Services.seleniumServer ? Services.seleniumServer.path : ''),
server_path: '', // Leave empty if @nightwatch/selenium-server is installed
command: 'standalone', // Selenium 4 only
cli_args: {
'webdriver.gecko.driver': (Services.geckodriver ? Services.geckodriver.path : ''),
'webdriver.chrome.driver': (Services.chromedriver ? Services.chromedriver.path : '')
//'webdriver.gecko.driver': '',
//'webdriver.chrome.driver': ''
}
},
webdriver: {
start_process: false,
default_path_prefix: '/wd/hub'
}
},

Expand Down Expand Up @@ -298,16 +303,3 @@ module.exports = {
}
};

function loadServices() {
try {
Services.seleniumServer = require('selenium-server');
} catch (err) {}

try {
Services.chromedriver = require('chromedriver');
} catch (err) {}

try {
Services.geckodriver = require('geckodriver');
} catch (err) {}
}
Loading

0 comments on commit 09ec13f

Please sign in to comment.