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
-1
votes
1 answer

Dynamic Frontend Testing

I know NightwatchJS and Cypress.io for Frontend Testing. Is there a way to make these tests more dynamic? For exmaple I have a framework where the detailpage of an article is always the same (ID-wise / styling can differ) and I want to test a list…
Isengo
  • 2,004
  • 3
  • 21
  • 43
-1
votes
1 answer

Loop in nightwatchjs

I need some basic infinity loop, while is true to looping and clicking to elements. 'Infinity Loop' : function (browser) { browser .click('#refresh-button') .pause(2000) .click('#refresh-button') .pause(2000) .click('#refresh-button') …
-1
votes
2 answers

How to run Nightwatch tests in Jenkins?

How can I integrate Nightwatch with Jenkins, and run the tests from Jenkins? What are the correct commands that I should use? I have selected 'Execute Windows Batch Command' and tried to run 'echo' followed by the usual commands that I run in cmd,…
Mihaela
  • 9
  • 1
  • 4
-1
votes
1 answer

Nightwatch.js: Click Text Link

I am trying to use Nightwatch to test the process of a user logging in using a log in text link. I checked out this: How to click a link using link text in nightwatch.js article which told me to use: .useXpath() // every selector now must be…
modusTollens
  • 397
  • 7
  • 23
-1
votes
1 answer

Nightwatch enable to detect inputs in Instagram

I tried a lot of different methods to set values for inputs https://www.instagram.com/accounts/login/?source=auth_switcher username password .waitForElementVisible('input[name=username]',1000) But unfortunately I did not find a solutions The…
-1
votes
1 answer

Nightwatch.js: How to run a log-in script before running the test suite

Is there a way where I can Run a script to run a website and perform log in etc. and before running a test suite using Nightwatch JS? I have tried to use beforeeach hook in global.js, but so far failed to make it work. If there is a solution for…
nhrcpt
  • 862
  • 3
  • 21
  • 51
-1
votes
1 answer

Selecting random value from dropdown menu in javascript (nightwatch.js)

Not had much experience of javascript, or nightwatch.js so apologies if this seems an obvious thing to do. I have a dropdown menu that gets randomly populated. What I'd like to do is randomly select one of these dropdown menu options. The html for…
Darren Harley
  • 75
  • 1
  • 18
-1
votes
2 answers

Selenium Webdriver Nightwatch.js

I am trying to click on the 'Customer Login' button. But it does not. module.exports = { tags: ['Registration'], 'Test Registration Page' : function (client) { client …
-1
votes
1 answer

Debugger for Protractor in WebStorm IDE

I want to know how I can setup debugger for Protractor test automation in WebStorm IDE. I have done it for Nightwatch framework but not sure about Protractor.
-1
votes
1 answer

How to implement centralised test execution control of NightWatch.js tests?

We are using Grunt to kick off NightWatch.js tests. There are like 30-40 tests and this number will grow a lot more. For now, I am aware of only two reasonable ways to choose which tests get run and they are both manual: 1. Remove all tests that…
DraxDomax
  • 1,008
  • 1
  • 9
  • 28
-1
votes
1 answer

What's the difference with keys and elementIdValue in WebDriver Protocol?

I am new to Nightwatch.js and WebDriver Protocol. During reading these documents, I am curious about the difference with .keys() and .elementIdValue(). In Nightwatch API Reference, the definitions are below: .keys(): Send a sequence of key strokes…
Cythilya
  • 99
  • 1
  • 9
-1
votes
1 answer

NightwatchJS - Can't close browser window automatically after running test

I'm running my first ever Nightwatch test as shown in the code below, everything runs fine, selenium types 'wiki' into google and submits the form fine, test passes. However I want it to automatically close the browser window down after the test has…
mvee
  • 263
  • 2
  • 15
-1
votes
1 answer

Testing website in nightwatch without browser

is any chance to test website by url and do not open browser so any info output will be in the command line? Thanks in advance !
Mrfet
  • 135
  • 1
  • 2
  • 6
-1
votes
1 answer

Unable to locate element in nightwatch using its id

I have encountered the following error while testing using nightwatch. Expected element to be visible - element was not found - expected "visible" but got: "not found" I have following two files:- page-object…
Sushmita Goswami
  • 113
  • 1
  • 10
-1
votes
2 answers

element not found via xpath

I have a button: nightwatch doesn't find it these ways: browser.waitForElementPresent('//button[@class="btn btn-default btn-auth"]', 5000);…
Munchkin
  • 4,528
  • 7
  • 45
  • 93
1 2 3
98
99