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
0
votes
2 answers

Timeout/Sleep in NightWatch/JavaScript

How to input between lines of code some force-timeout (like java Thread.Sleep) in NighWatch.js ? Have to wait for element to have exact value after page render.
Michau
  • 59
  • 1
  • 9
0
votes
1 answer

How can I upload an image to an input field with Nightwatch (currently only uploading text)?

How can I upload an image to an input field using Nightwatch? I am currently using setKeys() where the Nightwatch code looks like: require('path').resolve(__dirname + '/nightwatch.jpg') However, this results in uploading the text…
Sua Morales
  • 894
  • 10
  • 21
0
votes
1 answer

JavaScript/Nightwatch.js - Undefined is not a function

I am trying to write at test case in java script. Code: 'should verify login dropdown is not visible after clicking away': function (browser) { var welcome = browser.page.welcome(); welcome.navigate() …
Michau
  • 59
  • 1
  • 9
0
votes
1 answer

How can I get intellisense working in visual studio for NightwatchJS

How can I get intellisense working in visual studio for NightwatchJS? Using any of the native supported methods to tackle this provided no fruitful results and I have spent a lot of time searching online how other people have achieved this, with no…
Josh Mc
  • 9,911
  • 8
  • 53
  • 66
0
votes
1 answer

Initialize browser to a base URL at the beginning of a test in e2e testing

I have a project in Django, with some pages using React to enhance user experience. I want to create integration tests to ensure there is no regression in those pages over time. After some struggling, I chose to test nightwatch.js. I have my…
Maxime Lorant
  • 34,607
  • 19
  • 87
  • 97
0
votes
0 answers

Secure automated test for live shopping cart checkout with credit card using Selenium

I'd like to test a live shopping cart (Magento) with real credit card data and to a checkout to ensure checkout works after a code release. How do I store the credit card data to use in selenium on the live site? I'm using Nightwatch.js testing…
bucabay
  • 5,235
  • 2
  • 26
  • 37
0
votes
1 answer

Multiple level of sections in page_objects in nightwatch.js

I have just started out using nightwatch.js , and I am using page_objects to access elements in my tests. So what I was wondering is there anyway we can have sections within sections in page objects? I know that we can specify one level of section.…
Deepika Guliani
  • 64
  • 1
  • 12
0
votes
1 answer

Can not start Phantom driver in nightwatch

Chrome driver can be started correctly, but failed when switch to phantomjs. The strange thing is that the selenium process seems hanging there with no output, which is hard to debug. I use my laptop with WIN7, download phantomjs.exe from its…
0
votes
0 answers

Nightwatch parallel testing

I am trying to run several nightwatch tests in parallel on sauce labs via test workers. When the tests are run only the assertions from the first file are run and the rest say 0 assertions failed, 0 passed. The first file runs all of its assertions.
compsci45000
  • 379
  • 1
  • 5
  • 17
0
votes
1 answer

Nightwatch.js cannot set a string variable to an input field?

I am testing some JavaScript code with Nightwatch.js. I want to read a value from an input tag, increase or decrease it by 1 and then write it back to the input tag. Therefore I wrote this code: .getValue('#inputConfigReading', function(result){ …
Garrarufa
  • 1,145
  • 1
  • 12
  • 29
0
votes
1 answer

Functional Testing With Nightwatch

I'm struggling to find a solution( or at the very least an answer as to if it can be done) how to setup Nightwatch.js UI testing tool to show interaction between multiple users logged in on different browsers. I am writing tests for a lobby where…
0
votes
1 answer

How to get a subelement with css selector?

I use Nightwatch.js to test a website. Now I have this html code:
I need to select the input node. But there are other…
Garrarufa
  • 1,145
  • 1
  • 12
  • 29
0
votes
1 answer

Nightwatch.js cannot start selenium server on Windows 8.1

Nightwatch hangs when trying to start the selenium server. Windows 8.1 / nightwatch@0.6.13 Attached are the images (clockwise) of Nightwatch.json file Terminal window showing the folders and java paths Starting the selenium server manually (no…
Alper
  • 663
  • 1
  • 7
  • 24
0
votes
3 answers

How to select the nth html element in a table that has special class?

I am using Nightwatch.js to test a website. On this website there is a table which looks like this: ... ... ...
Garrarufa
  • 1,145
  • 1
  • 12
  • 29