Questions tagged [wdio-v4]

23 questions
52
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
  • 5,917
  • 11
  • 43
  • 52
7
votes
5 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?
5
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…
4
votes
4 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…
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…
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
  • 165
  • 10
1
vote
1 answer

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: …
1
vote
1 answer

webdriverIO - add junit reporter

I have an issure according to adding the junit reporter to wdio.conf.js. Whenever I try to implement any reporter I'm getting following output and my test is failling: ERROR @wdio/local-runner: 2019-06-04T10:01:13.337Z ERROR @wdio/local-runner:…
Jaw. M.
  • 107
  • 11
0
votes
0 answers

I have to get text and verify table values from a webpage using wdio javascript. How to do it using hash map?

header1 header2 header3 header4 First row row row Second row row row
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
  • 372
  • 1
  • 16
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,332
  • 2
  • 8
  • 25
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…
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
  • 247
  • 3
  • 15
0
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.
1
2