Questions tagged [nightwatch]

This tag should be used to ask questions about the e2e testing framework Nightwatch

This tag should be used to ask questions about the e2e testing framework Nightwatch

Nightwatch.js is an automated testing framework for web applications and websites, written in Node.js and using the W3C WebDriver API

123 questions
0
votes
1 answer

Nightwatch js iterating multiple webelements

Can anyone help me with exact code to iterate multiple elements & clicking it having same ID or XPath or css whatever just like we do findelements in selenium
0
votes
0 answers

Nighwatch ignores await in tests

I'm trying to start with Nightwatch and faced the unclear behavior. Please take a look at the the following code. I want to gather some text from a page into the list and then print it. Note the async test and await browser.perform…
Bohdan Nesteruk
  • 794
  • 17
  • 42
0
votes
1 answer

How to configure a remote webdriver in Nightwatch?

I'm getting started with Nightwatch and trying to launch a browser remotely using Selenoid. But looks like there is no sample of remote Webdriver configuration in official documentation. For instance, in Java I'm creating a RemoteWebdriver object,…
Bohdan Nesteruk
  • 794
  • 17
  • 42
0
votes
0 answers

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 giving below error Error while running .getScreenshot() protocol action: An unknown server-side error occurred while processing the command.…
thebadguy
  • 2,092
  • 1
  • 22
  • 31
0
votes
1 answer

Nightwatch.js - Element present but not visible

I have an element I'd like to check the content of, however, nightwatch isn't recoginsing it, even though it is visible on the screen. browser.waitForElementPresent('mySelector', 20000) //this succeeds browser.waitForElementVisible('mySelector',…
JenO
  • 1
  • 2
0
votes
1 answer

I'm getting issues in running nightwatch test cases in local configuration. For all browsers there's different issue which are listed as below:

Edge: Error: An error occurred while retrieving a new session: "Unable to create new service: EdgeDriverService" Chrome: Error: An error occurred while retrieving a new session: "Unable to create new service: ChromeDriverService" Firefox: Error: An…
Komal Thamke
  • 193
  • 1
  • 2
  • 11
0
votes
1 answer

ERR_CONNECTION_REFUSED when I start nightwatch via the chromium driver

package.json { "name": "assignment10", "version": "0.1.0", "private": true, "dependencies": { "@date-io/date-fns": "^2.10.8", "@material-ui/core": "^4.11.4", "@material-ui/pickers": "^3.3.10", "@testing-library/jest-dom":…
0
votes
0 answers

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 of my test suits: Error: Error while running "waitForElementVisible" command: "Error: Provided locating strategy…
0
votes
1 answer

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 the internet but found nothing related. Appreciate if someone can provide an example to execute system commands.
Wamique
  • 59
  • 2
  • 5
0
votes
1 answer

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, sometimes it throws this error: Element ... is not clickable at point (25, 299). Other element would receive the click:…
0
votes
1 answer

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 part of evaluation for a new test automation framework, I am looking to see if we can use TESTCAFE. Currently we are using Nightwatch (Java…
0
votes
1 answer

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. nightwatch generates an INFO log while connecting to chrome (As Shown in the first image below). However, these logs are considered as errors…
0
votes
1 answer

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 autotest and the essence of the test is looking for links to the main page on each page of the site, and if there are less than 2 links then the test…
0
votes
1 answer

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: