Java Script

JavaScript (not to be confused with Java) is a high-level, dynamic, multi-paradigm, weakly-typed language used for both client-side and server-side scripting. Its primary use is in rendering and allowing manipulation of web pages. Use this tag for questions regarding ECMAScript and its various dialects/implementations (excluding ActionScript and Google-Apps-Script).

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
61 votes
0 answers
1.1K views
Nightwatch: wait for new email from gmail

I am needing to use Nightwatch to wait until a new email is received from Gmail containing a temporary passwor

avatar
Benton
0 1 0 9
asked 07 September, 2021
55 votes
0 answers
2.5K views
Cannot Run Nightwatch Tests in Safari

I have followed all instructions in the Nightwatch docs and followed many issues in github. I believe I have t

avatar
Lawanda
0 1 0 9
asked 07 September, 2021
52 votes
2 answers
2.2K views
Making a custom group of defined chaining methods in js

The question is related to general js programming, but I'll use nightwatch.js as an example to elaborate

avatar
Robt
0 1 0 9
asked 07 September, 2021
64 votes
1 answers
1.6K views
Nightwatch - Cannot click on elements in Safari (Catalina)

Nightwatch: 1.3.4 Safari: 13.0 OS X: 10.15.3 I'm trying to set up my tests for Safari using Nightwatch.js

avatar
Solomon
0 1 0 9
asked 07 September, 2021
54 votes
0 answers
1.1K views
An error occurred while running .click() command on <input[type="submit"]>: from target frame detached in NightwatchJS

I'm getting this error in Nightwatch when trying to click submit in an iframe this is my code: .perform

avatar
Benton
0 1 0 9
asked 07 September, 2021
53 votes
1 answers
2.7K views
nightwatch :session not created: This version of ChromeDriver only supports Chrome version 81

Anyone know how to fix this error on the terminal when you run a test in nightwatch. My Chrome version is the

avatar
Sachiko
0 1 0 9
asked 07 September, 2021
58 votes
1 answers
2K views
Nightwatch using chromedriver version 83 returns `undefined` global values on script

Hi to all and this is the first time I'm posting at StackOverflow. My nightwatch script with a chromedriv

avatar
Rudolf
0 1 0 9
asked 07 September, 2021
64 votes
0 answers
807 views
ancestors.shift is not a function

I'm trying to get automated tests back up and running and having the following issue when I run a test. T

avatar
Dusty
0 1 0 9
asked 07 September, 2021
63 votes
0 answers
3.1K views
How to set default download directory in selenium Safari Capabilities?

I have being looking around for documentation related to setting Safari capabilities. The browser does not dow

avatar
Corey
0 1 0 9
asked 07 September, 2021
57 votes
0 answers
2.7K views
How to send a post request using CURL in nightwatch?

I have a use case requirement where i have to send a post request using a curl command before running ANY test

avatar
Denese
0 1 0 9
asked 07 September, 2021
51 votes
1 answers
928 views
How to add nested functions javascript in custom commands for Nightwatch testing- forEach -loop through elements

Hi I am new to javascript and Nightwatch, I am a manual tester who started doing automation about 6 months ago

avatar
Leonardo
0 1 0 9
asked 07 September, 2021
59 votes
1 answers
1.9K views
Selecting tabindex in Nightwatch

Im trying to select an specific button in my page, but nightwatch can't seem to find it. If I try to call

avatar
Scot
0 1 0 9
asked 07 September, 2021
56 votes
1 answers
593 views
Navigate context menu with nightwatch.js?

Im using nightwatchjs and having some difficulties with selecting a text and triggering a right-click and navi

avatar
Jeff
0 1 0 9
asked 07 September, 2021
59 votes
2 answers
1.9K views
Upgrading the night-watch from 1.3.2 to 1.3.4 breaks the existing test specially in page object

I was using night-watch version 1.3.2. All the tests were working fine till I update the night-watch to its la

avatar
Alba
0 1 0 9
asked 07 September, 2021
60 votes
1 answers
868 views
How to verify the text in a paragraph element in Nightwatch?

I have a text on a page and i have to verify that the text is present. The html for the element is <p class

avatar
Jefferey
0 1 0 9
asked 07 September, 2021
51 votes
0 answers
1.4K views
How can I access the window object in Nightwatch while the test is running?

I am UI testing an application containing OpenLayers. Since OpenLayers is for the most part drawing an SVG, di

avatar
Shantay
0 1 0 9
asked 07 September, 2021
68 votes
7 answers
1.3K views
How to clear field using nightwatch framework?

I'm trying to clear input field using different ways: clearValue() - doesn't work send some combina

avatar
Carmelina
0 1 0 9
asked 07 September, 2021
55 votes
1 answers
790 views
How can I use npm package selenium-standalone with Nightmare.js instead of downloading the selenium jar?

As the title suggests, I want to use Nightmare.js with selenium. However, their documentation only mentions th

avatar
Hilario
0 1 0 9
asked 07 September, 2021