Questions tagged [wdio-v4]
23 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
6
votes
1 answer
Avoid re-entering user/email and password with WebdriverIO in login form
I want to optimize my WebdriverIO tests. I'm trying to avoid to re-entering the username & password when I run a test suite with WebdriverIO. (Chromedriver)
The following two files are part of one module, and there are 4 modules in total.
First…

Salvador Salvatierra
- 111
- 2
- 8
4
votes
3 answers
WebdriverIO - Take full-page screenshot
I'm trying to take a screenshot of the full page using WebdriverIO.
I've read that the best method is to use WebdriverCSS to enhance my WebdriverIO flows. WebdriverCSS automatically screenshots the entire page??
The problem is that WebdriverCSS is…

mags
- 590
- 1
- 8
- 25
3
votes
1 answer
Using scroll() in Webdriver.io v4
My code logs into mediawiki's beta site, goes to the Preferences page and attempts to click on a button at the bottom of the page.
I am trying to use scroll() to achieve this since, running only .click() will result in an error, similar to the one…

ephemeralwaves
- 33
- 1
- 4
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.

Jayabharathi Palanisamy
- 727
- 7
- 15
1
vote
1 answer
Test failing only in headless chrome
I have some integration tests using wdio, they are all passing. However, when I run them in headless chrome, one of these tests fails. I get this error:
1) Reset password by submitting a new password "before all" hook:
element ("#identifierNext")…

P. Paul
- 363
- 3
- 17
1
vote
2 answers
Custom TestRail reporter for TestCafe not grab test results
I have custom TestRail (TR) reporter set and working with standard WDIO project. Basically it gets TR parameters in Json from CI, that grab test results and POST them to TR via 'testrail-api'.
Reporters used:
reporterOptions: {
outputDir: …

Bogdan Slyusarenko
- 33
- 3
1
vote
1 answer
webdriverIO - add junit reporter
I have an issue with adding the junit reporter to wdio.conf.js.
Whenever I try to implement any reporter I'm getting following output and my test is failing:
ERROR @wdio/local-runner: 2019-06-04T10:01:13.337Z
ERROR @wdio/local-runner:…

Jaw. M.
- 139
- 2
- 15
0
votes
1 answer
Not able to run wdio openfin based UI automation with wdio v6
What is the latest npm package available for wdio-openfin-service? I tried to install, "wdio-openfin-service": "^8.0.1",it gave me error, that it does not exist.
Reason to install 8.0.1 : https://github.com/wenjunche/wdio-openfin-service
npm ERR!…

QualityMatters
- 895
- 11
- 31
0
votes
1 answer
How to add timeline report in webdriver.io
How can I add timeline report in webdriver.io project.
Sample report screenshot

Bharath Kumar S
- 1,410
- 2
- 10
- 29
0
votes
0 answers
Why do I continue to receive this TypeError: expect is not a function
I'm using chai 4.2.0 and is not working as expected, this is the example.
Receiving this TypeError: expect is not a function and wondering why if I'm using a global variable.
var chai = require('chai');
var expect = chai.expect;
describe("Homepage…

techgamer
- 1
- 2
0
votes
1 answer
How to delete the value from a field when wdio clearValue fills the value again?
I need to create automated negative tests on a React.js app using jasmine and wdio but I cannot clear a field because the value keeps filling back. I have tried other methods and workarounds like…

AutomationUser
- 1
- 1
0
votes
2 answers
webdriver.io afterscenario close browser now working
Using webdriverIO and I am trying to close / quit chrome browser between scenarios. Here is what I have in the conf file:
afterScenario: function (scenario) {
console.log("afterScenario quit browser");
browser.Close();
;
…

user1279586
- 257
- 3
- 16
0
votes
1 answer
webdriverio Error: Could not request headers from chromedriver_mac64.zip: Error: read ECONNRESET - Mac OSX
I am writing some tests in webdriverio for one of the apps. I start the selenium server and run the following command
./node_modules/.bin/wdio wdio.conf.js
When I run this on my old windows computer it works just fine, now that I have got a new…

Nikhil Das Nomula
- 1,863
- 5
- 31
- 50