Skip to content

This repository contains code for Nightwatch.js tutorial.

Notifications You must be signed in to change notification settings

SDETQATestAutomation/nightwatch

Repository files navigation

Nightwatch Cucumber Framework

Installation Instructions

execute command npm install to install all dependencies after cloning repo.

Installing Nightwatch

npm i nightwatch@next  

Install Cucumber

npm install @cucumber/cucumber

Driver installation

npm i geckodriver
npm i chromedriver
npm i selenium-server
npm i iedriver

cloning repositoty

git clone https://github.com/SDETQATestAutomation/nightwatch.git

Update all dependencies

npm i -g npm-check-updates
ncu -u
npm install

Important Links

https://www.w3.org/TR/webdriver/
https://peter.sh/experiments/chromium-command-line-switches/

Chromdriver option list

"--log-level=3"
"--remote-debugging-port=0"
"--no-default-browser-check"
"--allow-outdated-plugins"
"--disable-logging"
"--disable-breakpad"
"--disable-client-side-phishing-detection"
"--disable-component-update"
"--disable-hang-monitor"
"--disable-prompt-on-repost"
"--disable-web-resources"
"--safebrowsing-disable-auto-update"
"--safebrowsing-disable-download-protection"
"--use-mock-keychain"
"--disable-popup-blocking"
"--metrics-recording-only"
"--ignore-certificate-errors"
"--ignore-urlfetcher-cert-requests"
"--test-type"
"--no-first-run"
"--disable-default-apps"
"--silent"
"--ignore-gpu-blacklist"
"--disable-gpu"
"--disable-software-rasterizer"
"--disable-infobars"
"--disable-extensions"
"--disable-dev-shm-usage"
"--no-sandbox"