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
2 answers

Nightwatch Issues Clicking a Div

I have a nightwatch test that looks like so where I am attempting to confirm that a click of the "password-to-text" functionality of my login page works: 'Test Password Visible': function (client) { client …
ViaTech
  • 2,143
  • 1
  • 16
  • 51
0
votes
1 answer

How do I change the filename of the Junit XML report that Nightwatch.js generates?

I have a Nightwatch.js test suite running. When it completes, I've configured the output directory using the output_folder setting. It produces JUnit XML files in that directory correctly. I have an existing automation tool which scans the directory…
Spina
  • 8,986
  • 7
  • 37
  • 36
0
votes
1 answer

Get an element of a Google Auto Ad vignette - nested document [edited]

I am trying to dismiss a Google ad on a website, but have no idea how to access the #dismiss-button element. Tried switching to that iframe, get "element not found" .pause(3000) .frame(1) .pause(3000) //or wait for element to be visible,…
katarinen
  • 28
  • 3
0
votes
1 answer

Nightwatch JS command chaining doesn't work in async functions

I'm trying to call an async page object command in my Nightwatch test but the test is failing. As you can see by the code sample, I'm attempting to chain a couple of .pause commands together but the chaining mechanism is not working. If I remove the…
0
votes
1 answer

Test automation with BDD Cucumber and Sauce Labs

Hope to find answer here I have to build a test automation tool with BDD approach written in JavaScript. We have to use Cucumber, Gherkin, Sauce Labs and it is going to be connected with Xray(Jira). At first, it was built with help of Nightwatch (to…
beauvoir
  • 67
  • 1
  • 9
0
votes
1 answer

Best way to run an action until expected condition is met in Nightwatch.js?

I am automating a portion of a website that kicks off a job when you click a button. The status of the job is reported on the page in another field, but it isn't automatically pushed. The end user needs to click a Refresh button inside the page to…
EdgeCase
  • 135
  • 2
  • 12
0
votes
1 answer

How do I assert .containsText with case insensitive in Nightwatch.js?

How do I assert .containsText with case insensitive in Nightwatch.js? For example I search for 'odin sphere' on google. There are a lot of possibilities for the search result, like 'Odin Sphere' 'odin sphere' 'ODIN SPHERE' etc etc I would like to…
Evelyn
  • 1
0
votes
1 answer

Selenium (nightwatch) setValue on Kendo DatePicker not working

I'm trying to input a date string formatted mm/dd/yyyy into a Kendo React DatePicker control using nightwatch setValue. It seems that no matter what approach I take to select the control it always sets the cursor on the year portion first and…
0
votes
1 answer

Nightwatch 1.3.5, able to accept alert, but cannot get the text from it. Salesforce UI Automation

I am working on Salesforce UI Automation using Nightwatch.js I am having an issue getting the text from an alert. I am able to trigger the alert and accept it, but not grab the text from it. Scenario : 1- User clicks on get transactions 2- After…
0
votes
1 answer

Writing Async Custom command with Nightwatch

I have been trying for the past 3 days without success to get a function i'm using to get the CSS Selector paths of a list of elements fitting a certain selector, to work as a custom command in Nightwatch JS. What you give to the…
0
votes
1 answer

command works right in python subprocess when run on terminal but failed when execute in crontab

I am trying to launch a nightwatch tests daily from crontab. Everything works fine when I launch my python script on macOS terminal, but once I launch cron job by calling my python script . Error below occurred : "env: node: No such file or…
Jia
  • 2,417
  • 1
  • 15
  • 25
0
votes
1 answer

How to get browser version and OS information shown in nightwatch console and use in code?

From above image one can see that when we start running nightwatch, in console we can see browser name, version and OS name and version. Is there a way to get versions value and use in code just like we used to get platform…
Govind
  • 483
  • 5
  • 8
0
votes
0 answers

nightwatch - still can't switch to the other window

The example from github doesn't work for me. https://github.com/nightwatchjs/nightwatch/issues/369 This is my code. When('I open a new browser window', () => { var host = 'http://www.google.com'; client …
Alichino
  • 1,668
  • 2
  • 16
  • 25
0
votes
0 answers

How to get row count of dynamic Excel (excluding header) using nightwatch

I want to print the number of rows present in Excel (this is a dynamic number) and with that row count. I do not want the header being included. This is what I tried until now:
nick
  • 1
0
votes
1 answer

client.elements is not working from a step definition using nightwatch-api

I'm trying to do nightwatch and cucumber integration for BDD. I'm unable to access client.elements function in a step function. const { client } = require('nightwatch-api'); const { Given, Then, When } = require('cucumber'); const homePage =…
1 2 3
8 9