Questions tagged [nightwatchjs]

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

Filter by
Sorted by
Tagged with
1 vote
2 answers
3k views

Nightwatch: Timed out while waiting for element to be present. - expected "found" but got "not found"

Using Nighwatch's POM below is a page function to click a button, page needs to be refreshed and validate if element present. using this.api.refresh() to refresh the page. But waitForElementPresent ...
4 votes
2 answers
3k views

Error trying to add chrome extension in nightwatchjs

I am trying to add an extension to my chromedriver for use in my test. According to the nightwatchjs website here, extensions | array of strings | A list of Chrome extensions to install on ...
0 votes
0 answers
31 views

How can I automate the email signup and verification process using selenium? [duplicate]

I have to automate the email signup and verification process using selenium. Any suggestion?Thanks in advance.
1 vote
3 answers
1k views

Data-driven approach to testing in nightwatch.js

One common problem when writing some e2e tests is how to test one feature multiple times with different sets of data. In many other similar tools (TestCafe, Cypress, perhaps more) and many not-so-...
0 votes
1 answer
1k views

Nightwatch JS - How to run multiple individual test cases?

Are there any other way to run test cases individually other than using --testcase flag ? also are there any to run 2 single test case from 2 different test suites? For example: Test Suite 1 Test ...
1 vote
1 answer
175 views

Is there an argument for chromedriver to accept notifications?

I am using Nightwatch to run my chromedriver, and I need to accept notifications through the browser. I have found this list of chromedriver arguments, but I haven't been able to find any that ...
3 votes
1 answer
210 views

Framework for Automation tests

I want to improve the quality process of the application I'm working on as a QA junior, I'm the only one in the team on this position and so I don't have a huge knowledge in terms of automation tests, ...
0 votes
1 answer
421 views

Element not visible on IE 11with nightwatch

We are using Nightwatch and working with Page objects. The tests are running without any issue on Chrome but element cannot be found on IE 11. We use css selector and custom tags (named data-testid) ...
2 votes
0 answers
1k views

Selenium running Firefox instead of IE or Edge

I am trying to get Nightwatchjs tests running with Chrome, Firefox, IE, Edge, and mobile web browsers (iOS, Android, etc). I'm having difficulty getting Selenium to open up a non-Firefox browser. ...
2 votes
1 answer
1k views

Why the Webdriver command window.maximize() doesn't put the window in fullscreen?

I was wondering if anyone know why the WebDriver command: .windowMaximize() doesn't put the window of the browser (Chrome on MAC in my case) in fullscreen? The window is re-sized to fit in only half ...
1 vote
1 answer
886 views

Is it possible to run several sessions on Nightwatch for a single test

I'm using the Nigthwatch framework and I was wondering if it's possible to launch several sessions in a single script. So for example, in the same test, it launches two instances of Chromedriver and ...
4 votes
1 answer
947 views

Is it possible to match a url with xpath in a nightwatch assertion?

In the nightwatch documentation I can see that there are both the urlContains and urlEquals assertions that can be specified in a nightwatch.js but these do not allow xpath selectors. I have applied ...
4 votes
1 answer
4k views

Do I need to run selenium server when using chromedriver?

I'm new to Selenium and Nightwatch and installed selenium-webdriver first, then chromedriver and finally I installed Nightwatch (because the syntax looks nice to me). Now when I want to run a single ...