Questions tagged [wdio-v5]

50 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?
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…
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…
shay n
  • 185
  • 1
  • 12
1
vote
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…
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
  • 1
  • 8
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
  • 1
  • 8
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
vote
2 answers

wdio+jasmine reRun/retry single test spec it('',()=>{},3) doesn't work

I am using "wdio" with "jasmine" test framework and trying to reRun a single test spec following https://webdriver.io/docs/retry.html but retry is not happening. I am running following code using wdio sync runner like this - ./node_modules/wdio…
Ankur A
  • 11
  • 1
1
vote
2 answers

Master report is not generating for all suites with HTML REPORTER (wdio5)

I have setting up a configuration in 'wdio.conf.js' for "rpii html reporter". But its not generating master report for all suites. const { ReportAggregator, HtmlReporter } = require('@rpii/wdio-html-reporter'); exports.config = { reporters:…
vinil narayan
  • 31
  • 1
  • 5
1
vote
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
  • 11
  • 3
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

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 get overwritten per capability. So if you have…
newBike
  • 12,989
  • 25
  • 88
  • 158
0
votes
2 answers

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 rgb(10, 49, 132) How do I get the IE11 to return…
0
votes
0 answers

WDIO implicit wait set up

I am havin trouble setting up implicit wait in my test cases. I am using browser.setTimeout({implicit: 3000}) in before hook, the test runs just fine, throws no exceptions but it does not wait for an element to load so the list of elements I am…
1
2 3 4