Questions tagged [nightwatch]

This tag should be used to ask questions about the e2e testing framework Nightwatch

This tag should be used to ask questions about the e2e testing framework Nightwatch

Nightwatch.js is an automated testing framework for web applications and websites, written in Node.js and using the W3C WebDriver API

123 questions
5
votes
3 answers

What is a Selenium wrapper?

Does it wrap around Selenium and provide a simpler or different method of invoking the functionality of Selenium? I looked it up on Google and the best information I could find was this one…
dc.niel
  • 63
  • 1
  • 5
3
votes
1 answer

Nightwatch - How to subscribe to CDP Events?

As you may already know, Nightwatch 2 now includes methods for making calls to CDP protocol. So, I'm trying to capture network responses. I know that the "Network" target has to be enabled and also we have to subscribe a callback to the…
leonisimo
  • 31
  • 2
3
votes
1 answer

How can I use npm package selenium-standalone with Nightmare.js instead of downloading the selenium jar?

As the title suggests, I want to use Nightmare.js with selenium. However, their documentation only mentions the selenium-standalone-xxxx.jar. I know that there is an npm package called selenium-standalone. We can't I use that with Nightmare? And if…
TheCrafter
  • 1,909
  • 2
  • 23
  • 44
2
votes
0 answers

Nightwatch mocha typescript

Could someone please help me how to use mocha Nightwatch with typescript , if I use like below it's not working , please help on it. import {NightwatchBrowser } from "nightwatch"; describe('Ecosia', function() { // test() and specify() is also…
2
votes
1 answer

Issue setting up Nightwatch

I have a Django project I am attempting to get nightwatch JS setup on, but I can't seem to get around issues with selinum drivers. I have a node_modules directory like this (showing important areas) node_modules .bin chromedriver …
ViaTech
  • 2,143
  • 1
  • 16
  • 51
2
votes
0 answers

How to set default download directory in selenium Safari Capabilities?

I have being looking around for documentation related to setting Safari capabilities. The browser does not download the file to the given path. Does anyone have any suggestions? desiredCapabilities: { browserName: 'safari', …
Cristea
  • 913
  • 10
  • 15
2
votes
2 answers

Running Nightwatch without Selenium Server in a Docker container

I read that: Starting with Nightwatch 1.0, using Selenium Standalone Server is no longer required, nor is it recommended for testing against a single browser... But I'm unable to find any documentation about interacting directly with the…
mimmus
  • 21
  • 2
2
votes
0 answers

How can I access the window object in Nightwatch while the test is running?

I am UI testing an application containing OpenLayers. Since OpenLayers is for the most part drawing an SVG, directly testing effects via DOM is not always possible. I would like to get the map object to check if the variables within it are set…
quick_dough
  • 76
  • 1
  • 6
2
votes
7 answers

How to clear field using nightwatch framework?

I'm trying to clear input field using different ways: clearValue() - doesn't work send some combination ok keys - doesn't work
Lev Boichenko
  • 497
  • 1
  • 5
  • 9
1
vote
0 answers

spawn EACCES error with chromedriver when running Nightwatch.js tests via Jenkins

I am trying to run Nightwatch.js tests via Jenkins and I am getting this specific error: Error: spawn chromedriver_win32/chromedriver.exe EACCES This is my current Nightwatch.conf.js configuration: module.exports = { "src_folders": ["tests"], …
1
vote
1 answer

Synchronous multi login test execution

I would like to automate the following use-case using selenium grid (nightwatch) / browserstack, Login using 1st user Login with 2nd user in incognito window or different browser 2nd user is a manager to 1st and interacts with user 1 Automate flows…
1
vote
0 answers

Chrome refuses to run inside of docker container on M1 when doing nightwatch tests

I have tried running a docker image, that previously worked on a non-M1 platform, to run nightwatch tests using Chromedriver and chromium. When I switched to an M1 mac, the first assertion of the test would fail, which implied that Chrome wasn't…
1
vote
2 answers

How to select a specific text using CSS selector

I want to select the text "Auto-Publish" in Span. How can I do it with a CSS selector? with Xpath I know how to do it. I am using Nightwatch for UI automation. I want to make a generic function in the page object which will take a value as a…
1
vote
0 answers

How to configure Nightwatch.js with geckodriver to install metamask on browser startup

So we are trying to configure NightWatch so that the resulting opened firefox browser window, comes pre-installed with a extension (MetaMask) - so that tests can use Metamask to test out simple wallet transactions. I'm fairly certain this is…
glo
  • 687
  • 1
  • 8
  • 20
1
vote
1 answer

How to add nested functions javascript in custom commands for Nightwatch testing- forEach -loop through elements

Hi I am new to javascript and Nightwatch, I am a manual tester who started doing automation about 6 months ago. I am writing test cases for checking the details of a product, with collapsible menus. Pressing + button will open and display a list of…
1
2 3
8 9