All Questions
Tagged with automated-tests node.js
300
questions
0
votes
0
answers
28
views
Branch code coverage is not 100% for code with async/await
When writing tests in my project, I came across the fact that the code coverage in the branch column is not 100%. Using NODE_V8_COVERAGE=v8_coverage I found a place that is not covered by the test, ...
1
vote
0
answers
44
views
How to config babel to compile import from ES6
I have a problem about config babel to compile import from ES6 javascript. I use babel.config.js
this is file wdio.conf.js, i want to compile import chai from "chai" but i am fail.
require('@...
0
votes
0
answers
44
views
How to config wdio.config.js in Webdriverio using javascript
have a good day for you. I am studying about automated testing by javascript, i meet a problem about hook , i have find many source, but i can not fix the error. If i remove "const expect = ...
0
votes
0
answers
97
views
How to config Hooks when using Webdriverio in Javascript
have a good day.
I have a error when i do my project, when i run file testLogin.js there is no error: Unable to load spec files quite likely because they rely on browser object that is not fully ...
0
votes
1
answer
27
views
How to consecutively call asynchronous functions in Javascript
everyone, in my school, i have a project that i code javascript to automated test a page
i use webdriver to text
but i have a error : TypeError: loginPageInstance.inputUsername(...).inputPassword is ...
0
votes
0
answers
15
views
How to run script with Different IP Addres everytime when my chrome is launched
I need one help
Problem Statement
Run script of webDriverIo with Different IP Addres everytime when my chrome is launched
Framework Used
WebdriverIo/Cucumber
package.json
{
"name": "...
1
vote
1
answer
767
views
Playwright how to get all links inside a div and then check if each of the link results in a 200?
At a high level, I want to
Go to some page, then use some locator (div etc) and pull all href links of a tag inside this locator.
Then I want to individually go to each of the link and see if it's ...
0
votes
0
answers
33
views
Sellenium/Jest - Run concurrent tests in new chrome window using the same session
We use a low code platform and currently working on to testing using Sellenium Webdriver and Jest in nodejs.
In the development environment we need to first authenticate and make a site release before ...
0
votes
1
answer
116
views
jest scripts failing with exit status 1
I have a couple of test scripts that are failing after the tests are all passing successfully and not sure the reason. I've searched the web with no solution that resolves
the issue.
Here is the ...
0
votes
1
answer
196
views
`UnexpectedAlertOpenError` in Selenium Webdriver on Node.js is present even after dismissing the alert
I am using Cucumber.js and Selenium Webdriver JS in a Node.js environment, using Firefox as my browser.
I am trying to test a page that shows an alert on load. I have created a Cucumber step to ...
0
votes
0
answers
165
views
How do I get Cucumber HTML Reporter to generate a new report on command?
I am running tests using CucmberJS and SeleniumWebdriver on Node.js.
I have installed the package cucumber-html-reporter. This is somewhat working, but for a few things:
The report.html file does not ...
0
votes
0
answers
140
views
Automated test runs correctly locally, but fails in jenkins
I created a simple Page Object style test that automates testing for language changes on a site. Locally the test runs correctly, but when running in jenkins an error occurs.
I have attached a ...
-1
votes
1
answer
890
views
Run cucumber by tag or run all tests
I am having hard time with running cucumber. I want to run either all scenarios if tags are not passed as CLI argument or certain scenarios according to passed tags as CLI argument.
Here is my config ...
0
votes
0
answers
40
views
How to run auto-tests via specific webdriver that I will put in repo instead of webdriver that generated automatically by protractor?
I'm using protractor test framework with node.js
with those configuration in protractor_config.js file
capabilities: {
shardTestFiles: yargs.instances > 1,
maxInstances: yargs....
2
votes
1
answer
407
views
How to assign a process.env.variable to a karate variable on karate-config.js
I'm currently trying to run Karate tests on a Node project using this library: https://github.com/karatelabs/karate-npm . My script on package json looks like:
{
"test_karate" : "...