Nightwatch.js

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

56 votes
1 answers
1.5K views
How to use an XPath or CSS selector to look for a substring in Nightwatch testing

I'm having to do Nightwatch testing on the following element: <textarea id="xxxxxxxx-971-condition"

avatar
Georgie
0 1 0 9
asked 07 September, 2021
63 votes
1 answers
429 views
Azure pipeline custom task - info logs are considered errors

I have developed an azure custom pipeline task (Build and Release) that executes nightwatch.js test cases. nig

avatar
Deedee
0 1 0 9
asked 07 September, 2021
64 votes
1 answers
1K views
Does TestCafe support sections in page objects (like Nightwatch does) ? If not, how can we achieve this in TestCafe?

We have rich UI with lot of web elements & multi levels of elements on UI segregated into sections. As p

avatar
Venice
0 1 0 9
asked 07 September, 2021
46 votes
0 answers
2.9K views
How to fetch values from same class and print w/o excel?

enter image description here Ho do I get the values of all the % (like -76%,88%..and so on) using night watch

avatar
Charis
0 1 0 9
asked 07 September, 2021
51 votes
1 answers
2.8K views
Is there a way to execute system commands from within nightwatch?

I am looking to start some service using the command line tool from within the nightwatch. Searched a lot over

avatar
Mikki
0 1 0 9
asked 07 September, 2021
53 votes
0 answers
2.3K views
Nightwatch - xpath locators stopped working for .waitForElementVisible() and .waitForElementPresent()

My tests has been working well for over a year, today I started to get the following error in numerous parts o

avatar
Boyd
0 1 0 9
asked 07 September, 2021
59 votes
1 answers
2.2K views
I&apos;m getting issues in running nightwatch test cases in local configuration. For all browsers there&apos;s different issue which are listed as below:

Edge: Error: An error occurred while retrieving a new session: "Unable to create new service: EdgeDriverServic

avatar
Wei
0 1 0 9
asked 07 September, 2021
64 votes
0 answers
1.8K views
nightwatchjs saveScreenshot giving TypeError: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView

I am working on an automation prototype using Nightwatch js and when I am trying to save screenshot, it is giv

avatar
Winford
0 1 0 9
asked 07 September, 2021
56 votes
0 answers
659 views
.keys() is misbehaving (i.e. not working) in nightwatch

So currently I have a test that logs into gmail (terrible idea but required) and searches the gmail inbox for

avatar
Sydney
0 1 0 9
asked 07 September, 2021
61 votes
0 answers
1.3K views
NIghtwatch Upgrade Error from 1.6.4 to 1.7

Issue: I am getting "unable to create session error" after upgrading Nightwatch from 1.6.4 to 1.7. Findings: T

avatar
Percy
0 1 0 9
asked 07 September, 2021
58 votes
1 answers
1.9K views
Nightwatch.js - How to do assertion on new browser tab

I have to test one scenario. User types desired URL to text which is linked with button. When user clicks this

avatar
Clarice
0 1 0 9
asked 07 September, 2021
67 votes
1 answers
1.8K views
Is there a way to check for ellipsis on text using nightwatch?

Is there a way to check for ellipsis on text or text that has been truncated using nightwatch. I tried to use

avatar
Hallie
0 1 0 9
asked 07 September, 2021
65 votes
1 answers
1.6K views
Nightwatcher selenium. How to press: CTRL + SHIFT + j

I have tried every combination I came up with with no success. browser.keys( [ browser.Keys.CONTROL, browser.K

avatar
Keith
0 1 0 9
asked 07 September, 2021
57 votes
1 answers
2.4K views
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 iss

avatar
Lorenzo
0 1 0 9
asked 07 September, 2021
57 votes
1 answers
2.7K views
Element not interactible and not visible although it is visible on the website in Nightwatch

I am trying to automate a Login to a website that I use frequently. I know thats not really the purpose of Nig

avatar
Scot
0 1 0 9
asked 07 September, 2021
56 votes
0 answers
2.4K views
Nightwatch FireFox60 and geckodriver MoveTo fails with unknown command

I am a new user to Nightwatch and am trying to convert a large number of tests to use the latest version of Ni

avatar
Emilia
0 1 0 9
asked 07 September, 2021
59 votes
1 answers
2.5K views
How to press CTRL+J (and CTRL+W) keys with Nightwatch.JS

I need to close Chrome download bar with Nightwatch.JS. In order to do so I want to press CONTROL+J and then C

avatar
Wei
0 1 0 9
asked 07 September, 2021
55 votes
2 answers
2.1K views
How to check value of tooltip in nightwatch

I'm writing a test which checks that some text appears when you hover over a link. Currently unable to do

avatar
Virgil
0 1 0 9
asked 07 September, 2021
59 votes
1 answers
1.6K views
How to run all testcase of a file from other test file in nightwatch

I am trying to run a testfile which has multiple testcase inside it from another test file. let's say, i

avatar
Keith
0 1 0 9
asked 07 September, 2021
62 votes
1 answers
2.7K views
safaridriver: unrecognized option &apos;--w3c&apos;

I'm trying to run a test against safari running on an iPhone in BrowserStack. Using nightwatch test fram

avatar
Royal
0 1 0 9
asked 07 September, 2021