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

1485 questions
9
votes
1 answer

Can I use links in setValue in file upload using nightwatch

Can I use links in different site in setValue in file upload using nightwatch? I look up a link in stackoverflow and see this: File Upload Testing in Nightwatch.js but the answer said that it will not work if the file is coming from…
Dranier
  • 311
  • 1
  • 5
  • 26
9
votes
4 answers

How can I run Nightwatch tests in a specific order?

I have several tests which test the UI and also serve to create data along the way. A separate set of tests rely on this data, meaning that these must run only after the first set have run. I know about running a group of them, or running them…
Sua Morales
  • 894
  • 10
  • 21
9
votes
2 answers

Reuse the browser session for Selenium WebDriver for Nightwatch.js tests

I need to write multiple tests (e.g. login test, use application once logged in tests, logout test, etc.) and need them all to be in separate files. The issue I run into is after each test, at the beginning of the next test being run, a new browser…
David C
  • 389
  • 1
  • 5
  • 13
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
2 answers

Easiest way to run Selenium tests in a Docker container over Jenkins CI

I want to execute my automated tests, written in Nightwatch-Cucumber over a Jenkins CI in a Docker container. I have a Docker image that I want to use for it. This is what I want to do in more detail. Start tests over Jenkins CI job On the same…
GRme
  • 2,707
  • 5
  • 26
  • 49
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,939
  • 20
  • 34
8
votes
1 answer

nightwatchjs parallel mode selenium hub docker compose

I'm trying to run tests in parallel written using nightwatchjs in Docker using Selenium Hub. I'm able to get the tests to run in parallel in Docker without Selenium Hub, however, some child processes will timeout causing multiple retries. The…
wwwuser
  • 6,282
  • 8
  • 52
  • 64
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
  • 889
  • 2
  • 11
  • 23
8
votes
5 answers

How to send keypress in nightwatch

I know how to send click events with nightwatch: browser.click('#my-control'); But I have been unable to find a way to send key events. How is this done in nightwatch?
Carl Manaster
  • 39,912
  • 17
  • 102
  • 155
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;