Questions tagged [wdio-v5]

44 questions
55
votes
2 answers

What is the difference between NightwatchJS and WebdriverIO?

As the title states, what is the difference between Nightwatch.js and Webdriver.io? It seems like they have kind of the same syntax and do almost the same thing. How are they different? I need to choose between them.
Presidenten
  • 6,327
  • 11
  • 45
  • 55
10
votes
6 answers

WebdriverIO: How to read baseURL value from wdio.conf.js. inside step definition file

I am using WebdriverIO for test automation. In wdio.conf.js file I have configured the 'baseUrl' property. I want to read the 'baseUrl' property value inside my test .js file. How can I do this?
Thangakumar D
  • 714
  • 5
  • 12
  • 27
2
votes
0 answers

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" My wdio.conf file looks like below reporters: [ 'dot', [ …
2
votes
2 answers

webdriverIO test on sauceLabs is not working for firefox

I am trying to run a wdio-test on saucelabs for chrome, IE and firefox. test works fine for chrome and IE, however it fails for firefox with : Infrastructure Error -- The Sauce VMs failed to start the browser or device. I am using lastest version…
2
votes
1 answer

Drag and Drop with webdriver.io

I am trying to use drag and drop method of WebDriver.io and it is not work. I used the example drag & drop on the website: https://www.w3schools.com/html/html5_draganddrop.asp I need this for automation of drag and drop function of an angular…
2
votes
1 answer

Allure report clean in @Wdio in webdriverIO

I am able to create allure report and open it. But I could not clean the previous results. I tried with the official document which does not give expected results.
2
votes
2 answers

WebdriverIO autocomplete in VSCODE

I am wonder, if it is way how to enable autocompletion for WDIO global variables ( $, $$, browser ) in VSCode. I know, that wdio has support for Webstorm, but it doesn't work for VSCode. Any idea, how to use autocompletion in VSCode? Without it is…
Vojtech Cerveny
  • 686
  • 1
  • 4
  • 18
2
votes
2 answers

How to use intellij idea debugger with webdriverIO?

I have an issue on wdio test runner. I have set it up in IntelliJ Idea as described here: How to get wdio running through IntelliJ run/debug configurations? But, when I try to debug, nothing happens. The test is not stopping on a breakpoint, it just…
Alex
  • 31
  • 5
1
vote
1 answer

Extracting selector variable names from JSON data

Given the following json: { "contract": [ {"fieldName": "contractYear", "fieldValue": "2020"}, ... ], "ruleSet": [ ... ] } And the following: staticCompany.contract.forEach(index => { if (this.index.fieldName.getText() ==…
1
vote
2 answers

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 TypeScript:" my ts.confg: { "compilerOptions": { …
Alex
  • 31
  • 5
1
vote
2 answers

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.4103.116 Mac OS X #0-0] Running: chrome…
kidulf
  • 419
  • 1
  • 6
  • 17
1
vote
1 answer

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 error the browser.close() is not a function and…
kidulf
  • 419
  • 1
  • 6
  • 17
1
vote
1 answer

The string parameter in Jenkins don't work

When I configure the string parameter in Jenkins then call this parameter from the execute shell build step, it doesn't seem to consider this parameter because in the log nothing appear (where the yellow arrows are pointing):
mehdi
  • 47
  • 3
  • 10
1
vote
1 answer

how to make the current allure-report result files erase the previous one

i'am using the allure-reporter with the wdio framework and in the Allure-results folder i get 490 file for each run and after a number of run it start generating false results and it's normal since the Allure-results folder contain about 75000…
mehdi
  • 47
  • 3
  • 10
1
vote
1 answer

@wdio/cli:utils: A service failed in the 'onPrepare' hook

Getting an error while running with saucelabs (wdio5). 2019-10-03T15:23:56.763Z ERROR @wdio/cli:utils: A service failed in the 'onPrepare' hook Error: Could not start Sauce Connect. Exit code 1 signal: null I have updated @wdio/cli with latest. But…
vinil narayan
  • 31
  • 1
  • 5
1
2 3