Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [nodejs]

Node.js is an event-based, non-blocking, asynchronous I/O framework that uses Google's V8 JavaScript engine and libuv library.

1
vote
1answer
43 views

Selenium steps not running in order of promise

I'm writing a test to check our ratequote form on https://militaryvaloan.com/va-rates, I've been mostly successful getting it to work however I'm having trouble keeping the event listeners in order. ...
2
votes
1answer
255 views

How to use async/await with Protractor-nodejs8

I am completely new to protractor, and I came across the async/await. Is it necessary to use async/await in all your script. And how to use with page object. Using node version 8.9.4 protractor ...
0
votes
1answer
218 views

How to drag and drop the image using dragAnddrop() in javascript using selenium webdriver?

Without using test framework i have to write this test case to drag and drop to upload the image. please help me if any one know this stuff.If any framework is available also let me know please.
2
votes
1answer
323 views

NodeJS Selenium-webdriver firefox geckodriver set browser binary location without changing PATH

Currently I have the following setup for my NodeJS based test for firefox in Windows 7 Firefox 61.0.1 "geckodriver": "^1.11.0", "selenium-webdriver": "^4.0.0-alpha.1" However when I execute the ...
1
vote
1answer
152 views

Nodejs Selenium-webdriver Selecting Particular <select> element if there are 2 elements that have the same ID

On a single page on our website, there are two elements that are.. very very similar: "A" <select class="form-control custom-select ng-untouched ng-pristine ng-invalid" id="SelectEU" name="...
0
votes
2answers
630 views

Getting an error TypeError: describe is not a function

I started creating a base test case using Mocha and Selenium Webriver. I get the following error when I try and run > mocha test TypeError: describe is not a function at Object.<anonymous> ...
5
votes
3answers
210 views

What tool combination is best to build web based UI for Selenium framework

I have built automation framework using Selenium Webdriver, Java, Maven and TestNG. I have setup Jenkins to run any test case easily. Everything running fine. Now our manager is asking to build web ...
1
vote
6answers
4k views

driver.manage(…).timeouts is not a function

I'm using Node.js selenium-webdriver and I have this annoying issue. The issue is that the wait function throws an exception in console. var webdriver = require('selenium-webdriver'), By = webdriver....
0
votes
0answers
35 views

Performance Testing tools for an async multi-point system

The Context I've been hired to work as a Performance test lead for a big transport company updating its nation-wide, realtime, information system. As with every project, this one is behind schedule ...
0
votes
1answer
45 views

How different it is to manually test a web application which is developed using MEAN stack?

Are there any specific details to be taken care of, when manually testing a Web Application developed using Angular JS,Node.js? As these two frameworks are javascript based,what are the features to ...
2
votes
0answers
580 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. ...
0
votes
0answers
337 views

Why I am getting code ELIFECYCLE Error in Test cases?

We have more than 2000 test cases in our source. To generate the code coverage in less time,I have implemented the parallel execution of test cases with npm-concurrently package and chrome headless ...
0
votes
0answers
37 views

RobotJS installation

Is it possible for automation if I have robotjs along with Java for automation? I am just confused the website recommends python as supported language.
1
vote
0answers
374 views

How can I debug karma tests without changing PhantomJS to Chrome in Visual Studio Code

I have karma tests that during execution runs PhantomJS. Unfortunately when some of those tests fail, error messages are not very helpful. Thus, I would like to debug them. However, most sources ...
1
vote
0answers
1k views

WebdriverIO browser.scroll() always scrolls to the top?

I am using WebdriverIO and I want to scroll to an element. But no matter if I'm using element.scroll() or browser.scroll(0,yLocation) it will always scroll to the top of the page. Is it possible ...
1
vote
2answers
267 views

How to be sure that a `click` fails using Selenium and NodeJS?

try to click an element check whether a certain string exists if false, throw an exit 1 This workaround works, but I wonder whether there is a selenium function that checks whether a click does not ...
3
votes
1answer
9k views

How to send Keyboard Shortcuts to browser using Selenium and Nodejs

I am trying to create a test script in Node.JS using selenium webdriver and in case I need to send keyboard shortcuts to the driver. I tried finding the //body element and sending them but only ctrl+...