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
31 views

MQTT QoS automated testing with aedes broker on node.js/net

I want to test the QoS of the MQTT protocol. I use aedes as my broker. For testing QoS 2, one of the test cases I'd have to evaluate, is to run a scenario where once a message is published by the ...
0
votes
1answer
75 views

When I run my appium script I am getting error “TypeError [ERR_INVALID_ARG_TYPE]”which I am not able to understand

I wrote a script to automate my app using appium with java-script(nodejs), but when I run it I am getting error. This is the code which I have written. var webdriverio = require('webdriverio'); var ...
1
vote
2answers
26 views

Mocking external endpoints in tests on open source project

I am working on an npm package scraper library. I would like to add integration tests but I am not sure the best way to approach it. I have an examples folder which shows how the scraper works with ...
1
vote
1answer
314 views

when i tried to install opencv4nodejs i am getting an error

I am new to appium using javascript and to install appium I am following this link Setting up appium with javascript so when I installed appium-doctor and ran it i got an error. info AppiumDoctor ...
1
vote
1answer
56 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
729 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
333 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
507 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
322 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
851 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
225 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
5k 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
55 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
674 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. ...
-1
votes
0answers
42 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
400 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
2k 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
303 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 ...
4
votes
1answer
10k 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+...