Skip to main content

All Questions

0 votes
0 answers
35 views

how do i manipulate my javascript based automation framework to mouse over i.e the pointer to hover over a menu item?

I am currently experimenting with the automation UI test framework called Nightwatch.js. I am trying to get my test to manipulate the mouse to hover over a menu item with submenus. It keeps failing. I ...
Graduate Tester's user avatar
2 votes
1 answer
68 views

Nightwatch using same element selector for each call

Is there a way to avoid using element's selector twice or more when executing several actions on the same element? E.g. ('Some test', function (browser) { browser .waitForElementVisible('selector', ...
TheFortnight's user avatar
1 vote
0 answers
463 views

WebDriver.io interceptor Error: TypeError: WebdriverAjax is not a function

hi try to launch my test with webdriver.io and interceptor service, this is my package.json package.json "name": "my-new-project", "type": "module", "...
Luca Bottoni's user avatar
0 votes
0 answers
59 views

window.postMessage with headless mode on nightwatch

browser.pause(1000).execute(() => { window.postMessage({ type: 'LEMON_EDITOR_ACTION' }, '*') }) I can't execute this code with headless mode on Nightwatch.js I even try with executeAsync, Same ...
Hicham Malki's user avatar
0 votes
1 answer
82 views

Selecting/highlighting text in nightwatch.js

I need to simulate selecting part of the text by mouse. Like on image. I tried to use moveToElement('xpath', 'selector', 0, 0); // move to start of the element mouseButtonDown(); moveToElement('...
maciejze's user avatar
  • 177
0 votes
0 answers
90 views

How to increase timeout for session If no new command reaches in Nightwatch 2.0

I have a wait command via API with opened browser and browser closed before condition is set true. How to increase timeout If no new command reaches and what is it name it? e.g. before(){ loginPage....
Victoria Nesteruk's user avatar
0 votes
1 answer
945 views

Error connecting to localhost on port 4445. with Nightwatch and Selenium

I'm trying to run my script using Nightwatch(Javascript), but I'm getting this error : \ Connecting to localhost on port 4445... ‼ Error connecting to localhost on port 4445. × ...
Amina's user avatar
  • 682
2 votes
1 answer
772 views

How can I handle file download pop up for safari using nightwatch

I am trying to use something like this, similar to my firefox options, but my test doesn't seem to handle the download pop-up, any suggestions ? Thank you "safari": { "...
prafful_hs's user avatar
1 vote
0 answers
175 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 in Nightwatch. Example: "curl -X POST https://example.com/". I am aware that ...
Prabhat's user avatar
  • 33
1 vote
1 answer
1k 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="subfooter__text" data-v-79ab1348=""> The Tesla is part of the &...
Prabhat's user avatar
  • 33
0 votes
1 answer
398 views

Nightwatch dropdowns handling by passing value

Below is the approach I have used in order to select values from a dropdown using nightwatch.As you can see this is not a good approach. We can't select the specific value from dropdown unless we ...
user3879057's user avatar
1 vote
0 answers
197 views

Nightwatch this.api out side of a custom function results in undefined

Using Nightwatch 1.5.1 I'm trying to declare my this.api in a variable at the top of the Object Page like this const browser = this.api but when I use it in a custom command I get an error. Example - ...
Vladislav Bulanov's user avatar
1 vote
1 answer
423 views

Workaround for Drag and Drop SVG elements in Chrome using Selenium?

Details: "chromedriver": "^87.0.7", "geckodriver": "^1.22.1", "html-dnd": "^1.2.1", "nightwatch": "^1.5.1", Expected ...
Vladislav Bulanov's user avatar
1 vote
1 answer
676 views

How to return string(variable value) from page object to test file in nightwatch?

I am practicing page object model in nightwatch but I am unable to return variable optionSelected value from page object to test. I have two pages: googleAdvanceSearch page where i have written ...
Sonal's user avatar
  • 11
0 votes
1 answer
754 views

How to launch maximised window of Safari Browser in Nightwatch

Nightwatch Configuration file: "globals_path":"./nightwatch/global.js", "detailed_output":true, "disable_colors":false, "output_folder":"./...
PAMELI DAS's user avatar

15 30 50 per page
1
2 3 4 5
12