Questions tagged [nightwatch.js]

Nightwatch.js is an easy to use Node.js based End-to-End (E2E) testing solution for browser based apps and websites.

Nightwatch.js is an easy to use Node.js based End-to-End (E2E) testing solution for browser based apps and websites. It uses the powerful Selenium WebDriver API to perform commands and assertions on DOM elements.


Resources


See Also

1449 questions
9
votes
2 answers

Enable localStorage / webStorage in nightwatch.js

I am trying to test an app that relies on localStorage. Everything works fine when I interact with the browser manually. However, in nightwatch.js instead of the desired string I get a null response when requesting localStorage. This applies both in…
roktok
  • 91
  • 1
  • 5
9
votes
3 answers

Nightwatch can't locate element via css id or class selectors

We're using Nightwatch to automate some of our UI testing. Some of the current tests are rather brittle, mostly having to do with weird CSS selectors, and I'm trying to simplify them. But some of the simple CSS selectors that I would expect to work…
Ken Smith
  • 19,697
  • 13
  • 93
  • 139
9
votes
5 answers

Getting started with nightwatch.js

Can anyone provide me with a detailed explanation on how to setup nightwatch and start writing browser tests? I have searched for such information online and was unable to find it. The nightwatch.js website had good information about various…
Raj Prabakhar
  • 165
  • 1
  • 3
  • 7
8
votes
4 answers

nightwatch.js cannot run chrome in headless mode

I cannot get it to run without it opening a visible browser window. I tried both with "headless" and "--headless" arguments Note: I am NOT using Selenium. Acording to this page headless mode is supported in MacOSX since version 60. I'm running…
J. Araujo
  • 89
  • 1
  • 8
8
votes
1 answer

Driving Nightwatch Tests through REPL

I currently have nightwatch.js setup using the vue automated setup. That template is located here. https://github.com/vuejs-templates/webpack/tree/master/template/test/e2e Is it possible to run nightwatch assertions through the command line in a…
Austio
  • 5,448
  • 17
  • 32
8
votes
2 answers

Browserstack reports successful even when test fails in Nightwatchjs

I just started using nightwatch with browserstack and I'm noticing that when we get a failed test, nightwatch registers the failure, but browserstack does not. sample test I am using. Also I am using free trial version of BrowserStack. My question…
user2618875
  • 859
  • 2
  • 8
  • 22
8
votes
2 answers

Accessing iFrame elements using Nightwatch

I am using Nightwatch to test that the correct value has been given to a div within an iframe. My html;