Skip to main content

Questions tagged [wdio-v5]

The tag has no usage guidance.

-1 votes
1 answer
192 views

not able to assert element value webdriverIO

I am trying to assert one element value by using the following code: async user_verify_loan_term() { await chaiExpect(element.getAttribute("value")==="3") } The assertion is ...
Devesh Joshi's user avatar
-1 votes
1 answer
77 views

Regex to capture patterns using JavaScript

I am new to automation ! I use wdio5 , cucumber and selenium framework with gherkin language . I need to write a step file using JavaScript for the gherkin feature that needs to add these patterns ...
Naomy 's user avatar
2 votes
0 answers
417 views

How to resolve mochawesome reports in webdriver.io framework getting error TypeError: ReporterClass is not a constructor

I have added the below dev dependencies for mochawesome reports in my webdriver.io framework. "wdio-dot-reporter": "0.0.10", "wdio-mochawesome-reporter": "^4.0.0&...
Dipika Mishra's user avatar
1 vote
1 answer
172 views

Extracting selector variable names from JSON data

Given the following json: { "contract": [ {"fieldName": "contractYear", "fieldValue": "2020"}, ... ], "ruleSet": [ ... ] ...
Sean O'Brien's user avatar
-1 votes
1 answer
121 views

IE Error while executing the nodeJS script

The application which I am automating is supportable on IE browser. After writing my script in feature and the step definition ; while I am trying to execute my script the console is throwing below ...
swagatika's user avatar
0 votes
1 answer
706 views

How to disable chrome permission popup in selenium driver

Chrome version 89 and set up below setting and still not dismissing the permission popup which blocks the rest of test cases. Any idea or workaround? capabilities: [{ // maxInstances can ...
newBike's user avatar
  • 14.9k
0 votes
2 answers
40 views

Normalise style attribute in javascript

In IE11 when we block.getAttribute('style') we return border-bottom-width: 1pt; border-bottom-style: dotted; border-bottom-color: rgb(10, 49, 132) But in chrome it returns border-bottom: 1pt dotted ...
Ahmed Yaslem's user avatar
0 votes
1 answer
848 views

report portal status interrupted after long wait in tests

We use report portal to report automatic tests from WDIO. I have noticed, that after long waits in the tests (waiting for a field to be updated in the database, before continuing with the test for ...
Limbo's user avatar
  • 643
0 votes
0 answers
76 views

WDIO - isDisplayed() method discrepencies in local & remote machines

cont elements = "list".filter(ele=> ele.isDisplayed()); Problem statement: I am trying to get the list of displayed elements in WDIO, but currently its returning all elements in the list. ...
fregp's user avatar
  • 29
1 vote
2 answers
1k views

browser.addcommand() using typescript in webdriverIO "Unable to compile TypeScript: error TS2339: Property '...' does not exist on type 'Element'."

I am struggling with browser.addCommand(), I use WebDriverIO Version 6 + typescript, and when I try to add a command to wdio.conf.js and run the test it fails with error "Unable to compile ...
Alex's user avatar
  • 31
0 votes
1 answer
437 views

Way to implement resetApp for React Native with wdio-cli/? - webdriverio

Hellow there! I am using the wdio/cli so I created the wdio.conf.js with this command, then I start doing the test. But the issues is when have more than one test in a single or multiple test files. ...
robto09's user avatar
  • 193
1 vote
2 answers
7k views

Cannot see WebdriverIO logs in the console (webdriver logs)

I am using WebdriverIO version 5 and would like to see the logs of my test run. I tried the command: npm run rltest --logLevel=info, but all I can see is the output of the spec reporter. [chrome 83.0....
kidulf's user avatar
  • 429
1 vote
1 answer
2k views

How can I close the browser after a mocha test?

I am new to WebdriverIO and Mocha and I wrote 2 tests in order to check our web app. I want to close the browser and sign-in again, after I run the first test. When I used browser.close(), I got an ...
kidulf's user avatar
  • 429
-1 votes
2 answers
725 views

How to create Step definition from BDD feature file in visual studio using WDIO

How to create step definition from BDD feature file using WDIO framework Scenario Outline: Verify the weatherForecast Application whether user can able to lunch the application for mentioned city ...
prasad sangpal's user avatar
0 votes
1 answer
2k views

Global variable that survives browser closed [wdio web driver io]

I have several suites and in each one some spec files. What I noticed is that after wdio runs all tests in any spec file, it closes the browser and opens a fresh instance of the browser. Even the ...
Confront's user avatar
  • 616

15 30 50 per page