Tag: nightwatch

52 votes
2 answers
1.7K views
Nightwatch count number of element

I'am a newbie with Nightwatch and i would like to count the number of element. I am able to do this but I

avatar
Thurman
0 1 0 9
asked 07 September, 2021
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
52 votes
1 answers
928 views
How do I prevent errors when clicking an element on the page but element is not clickable?

I am writing a test for an element on the page, but when I use pageObject.click("@MyElement) on the element, s

avatar
Emilia
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
58 votes
1 answers
2.5K views
ERR_CONNECTION_REFUSED when I start nightwatch via the chromium driver

package.json { "name": "assignment10", "version": "0.1.0", "private": true, "dependencies": { "@da

avatar
Patsy
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
60 votes
0 answers
1.3K views
Nightwatchjs Test Running Before the `before` Hook Completes

I have a nightwatchjs project setup with this code. module.exports = { beforeEach: browser => {

avatar
Bryant
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
51 votes
1 answers
3.1K views
Nightwatch.js how to ignore main page? Or how to use window.location.host?

I'm a big noob in nightwatch.js but i have to decide this task. Please help me... I have a simple autotes

avatar
Cortez
0 1 0 9
asked 07 September, 2021
57 votes
2 answers
2.3K views
How .elements() works in nightwatch?

Considering I have multiple trs I want to pick one and edit value in it by clicking edit button bounded to it.

avatar
Trudy
0 1 0 9
asked 07 September, 2021