Questions tagged [wdio-v6]
45 questions
0
votes
1 answer
My 'waits' don't work properly in webdriverIO
describe("Purge all", function() {
it('Purge all', () => {
CachePurgePage.open(PARTNER_ID, ACCOUNT_ID, CONFIGURATION_ID);
const label = $('[class = "css-1av0y7f-SidebarLinkTitle ezsph7p1"]');
…

Павел Родин
- 51
- 9
0
votes
2 answers
How to click on the reCAPTCHA using webdriverio
Hi everyone can you help me with that problem?
I'm trying to enter inside the iframe of google reCAPTCHA. Tried several ways to click but didn't work with the iframe it seems.
Appreciate your help. Thank you in advance.

Prakash Patil
- 443
- 1
- 4
- 11
0
votes
0 answers
Request failed with status 500 due to javascript error: javascript error: Cannot read property 'dispatchEvent' of undefined
Getting " Request failed with status 500 due to javascript error: javascript error: Cannot read property 'dispatchEvent' of undefined"
const wheel = function (selector) {
browser.execute(function (selector) {
…

Manish Patel
- 1
- 1
0
votes
1 answer
how to get latest report in allure reporter in mocha framework
how to get latest report in allure reporter in mocha framework, I am getting report for previous execution, not a latest one, can somebody help on this issue

kalluri roopesh
- 11
- 3
0
votes
2 answers
Executing WDIO-Test locally in a docker container throws error: @wdio/cli:utils: A service failed in the 'onPrepare' hook
I'm executing a headless e2e-test locally in a docker-container like so:
docker-compose up
yarn test
I get this error-message at the beginning:
ERROR @wdio/cli:utils: A service failed in the 'onPrepare' hook
TypeError: Cannot read property 'args'…

Jan and RESTless
- 199
- 1
- 14
0
votes
1 answer
wdio-junit-reporter marking retried tests as failed
We have tests done with mocha and wdio using junit-reporter to generate reports in the pipeline(s). Recently test jobs started failing and it seems it's due to retried tests being marked as failed.
Tests are retried up to three times and we noticed…

hepek
- 5
- 2
0
votes
3 answers
Promise Never Resolves Using Axios
I am using WDIO and defining a customer reporter to integrate with the testrails api. The plan was to use axios to make these requests inside the testing hooks.
Unfortunately, I am unable to get axios to return any valid data on requests. In most…

Driver
- 317
- 1
- 4
- 18
0
votes
1 answer
I need to move 'beforeEach' and 'afterEach' from spec to global config WDIO [mocha, hook, wdio]
I use WebdriverIO for E2E testing with mocha framework
When I run tests, I want that after the first error, all subsequent checks in this test were skipped, and Mocha went to the next test file
as an example, I showed the code below which needs to…
0
votes
1 answer
how to add context for cucumber scenarios like in mocha?
I was wondering if there is a way to wrap some of the cucumber scenarios inside one context same as in mocha in order to use a certain hook such as beforeAll,
before(() => {
this will run once beforeAll
});
it('01.…
user15281199
0
votes
1 answer
WebdiverIO wdio config: using a variable
In the wdio.conf.js file, I'm using the beforeTest section to set a JSON web token so that, later on in the test suites I no longer need to login into the web application.
If the token is hardcode, this action is working perfectly! Yet I would like…

DavidBouckaert
- 19
- 7
0
votes
2 answers
How can I access all the "text" properties of the json of cucumber's "step"-object and log them to the console?
I'm trying to log the string/regex of a step description of a cucumber 'step'-oject to the console. This is an example step
Given Alice is hungry
... and this is the first line to the step definition
Given( /^Alice is hungry$/, () => {
I'm trying…

Jan and RESTless
- 199
- 1
- 14
0
votes
1 answer
webdriverIO v6 : browser.getCurrentTabId() and browser.windowHandles() is not a function in version 6. What is the replacement?
switchToPopUpWindow(n = -1) {
this.mainWindow = browser.getCurrentTabId()
let handles = browser.windowHandles()
n == -1 && (n = handles.value.length - 1)
browser.window(handles.value[n])
return this
…

Name
- 11
- 3
0
votes
2 answers
Webdriverio 6 - How to right click at X and Y location
Webdriverio 6 - How to rightclick at X and Y location.
Could not find the rightclick command in WebdriverIO version 6 docs.
this is the code showing in WebdrivewrIO v4 but not working in V6
browser.rightClick(elementXpath,5,184);
Error showign…

Sam_
- 31
- 7
0
votes
1 answer
How to stop the test running if one of the 'it' sections fails?
My test suite contains several 'it' sections within the 'describe'.
If one of the 'it' sections fails (e.g. if it can't find an element) - it jumps straight to the next 'it' section and carries on the test.
If an 'it' section fails I just want the…

Matt
- 773
- 2
- 15
- 30
0
votes
0 answers
How do I resolve typing conflicts introduced by webdriver.io
I'm trying to set up testing on my TypeScript SPA using webdriver.io. I set up wdio but could not compile the typescript because of various type conflicts caused by new types introduced by wdio.
For example, wdio introduces $ which conflicts with $…

Matthew James Davis
- 12,134
- 7
- 61
- 90