Questions tagged [wdio-v6]
45 questions
1
vote
2 answers
@wdio/sync: TypeError: hook.apply is not a function
I'm using webdriverIO 6 with typescript and Jasmine and recently (after upgrading @wdio/sync to 6.10.11 and I'm not sure if it's coincidence or not) I noticed I've got some new errors during the test runs - before and after every "it":
Starting…

VivaceNonTroppo
- 456
- 1
- 3
- 13
1
vote
0 answers
Wdio, Mocha. How to create(randomly generate) global variable and use it in every test
Help with info pls
In my work I use webdriver.io with mocha.
Right now my work folder has such structure
Tests
1.1 - pageobjects - folder with page.js classes
1.2 - resources - contain - index.js with values
1.3 - specs - folder with tests
1.4 -…

Andrej Andrej
- 11
- 1
1
vote
0 answers
Access chrome driver devtools in Selenium Grid 4 alpha 6,
I have a selenium grid 4 set up and have a local code which runs test cases that access chrome devtools (e.g. performance, Loading size, etc)
I can't seem to find a way to make it work. Is this even possible? there isn't much documentation for this.…

erwin lim
- 71
- 1
- 4
1
vote
0 answers
How to test a node app with webdriverio in a dockerized environment (ERR_SSL_PROTOCOL_ERROR)
I want to have three connected docker containers (to run it on a build server):
My application (name: app)
A browser (in this case chrome; name: selenium)
My End2End/UI-Tests (name tester)
However the tests aren't running. The current error…

Sergej Werfel
- 1,335
- 2
- 14
- 25
0
votes
0 answers
The value of "browser" object in Before hook is undefined in wdio cucumberjs
I am using cucumberjs, @wdio/cucumber-framework(version:7.16.13), wdio(version: 7.16.13) along with javascript.
Due to some issue I have to define before hook of wdio in my step definition file(mystepdefinition.js):
mystepdefinition.js:
import {…

a Learner
- 4,944
- 10
- 53
- 89
0
votes
0 answers
@wdio/local-runner exiting with exit code 1. Failed in firefox. Not able to launch test session in firefox
I am using wdio,cucumber to run test framework using firefox browser.
My package.json is:
{
"name": "abc",
"description": "abc",
"version": "0.0.1",
"private": true,
"engines": {
"node": ">=10.16.0",
"npm":…

a Learner
- 4,944
- 10
- 53
- 89
0
votes
0 answers
When to use @cucumber/cucumber and @wdio/cucumber-framework?
From the wdio docs v8 from here it says:
Import Step Definition Helper
In order to use step definition helper like Given, When or Then or
hooks, you are suppose to import then from @cucumber/cucumber, e.g.
like this:
import { Given, When, Then }…

a Learner
- 4,944
- 10
- 53
- 89
0
votes
1 answer
multiple wdio.conf.js files and same hook repeated in both of them
I am using javascript, nodejs, npm, wdio, cucumber in my testing automation framework.
In my main project root folder I have wdio.conf.js file. Suppose there is a dependency in node_modules folder with its own wdio.conf.js file. And suppose both…

a Learner
- 4,944
- 10
- 53
- 89
0
votes
1 answer
Firefox and Edge capabilities settings for deactivating images - WDIO
I want to run cross browsing testing instead of only one browser (Chrome) for configuring Chrome to run headless and deactivate images i use the following in wdio.conf.js file :
browserName: 'chrome',
'goog:chromeOptions': {
…

Asmoun
- 1,417
- 5
- 20
- 53
0
votes
1 answer
How to disable the internet in wdio mocha selenium?
I am using the below codes in my script but the internet is not getting disconnected.
1st try:
await browser.setNetworkConditions({
latency: 0,
throughput: 0,
offline: true
});
2nd try:
…

Vaibhav_Sharma
- 546
- 1
- 9
- 22
0
votes
0 answers
webdriverIO ERROR webdriver: unknown error: Illegal key values seen in w3c capabilities: [args]
when executing : npx run wdio ./wdio.conf.js
i get this error :
0-0] 2022-12-14T15:29:29.651Z ERROR webdriver: unknown error: Illegal key values seen in w3c capabilities: [args]
at Object.getErrorFromResponseBody…

Asmoun
- 1,417
- 5
- 20
- 53
0
votes
1 answer
How to set viewport in WDIO V6?
Is there a way to set viewport in current version of WebDriverIO i.e. V6(async)? I want to set responsive dimensions for the inner browser and not outer browser size.
I tried to zoom out using :
await browser.executeAsync((done) => {…

Prachi
- 1
- 1
0
votes
0 answers
How to intercept and parse a video from Android app?
The task is to understand if a video quality really changed after changing it on Android app. API answer's interception isn't enough 'cause it can be misleading. The only way is to somehow get a video itself or part of it then parse and compare…

Павел Родин
- 51
- 9
0
votes
1 answer
How to handle when electron app and chrome browser capabilities require different versions of chromedriver
My test environment has below setup:
@wdio/selenium-standalone-service": "^6.11.0"
node12 (so wdio-electron-service is not an option at the
moment)
google chrome version 102.0.5005.61
electron(@18) app version 100.0.4896.60
firefox version…

Claire
- 23
- 5
0
votes
1 answer
Unable to run tests when passing multiple cucumber tags as run time argument in package.json
I am trying to run multiple cucumber tags when I am passing them from package.json. it is not able to invoke any tests however it works if i hardcode them in wdio.conf.js. I am using below statement in my package json file
"testscript": "npx wdio…

DevX
- 490
- 6
- 23