Questions tagged [wdio]

121 questions
1
vote
2 answers

Why we use await in front of wdio commands $ and $$

I am beginner to wdio(version 7 onwards). My question is why we put await in front of $(...) or $$(...) commands? $ and $$ retuns element object and array of elements respectively. Then why we use await in front of them? Are they returning…
a Learner
  • 4,944
  • 10
  • 53
  • 89
1
vote
0 answers

How to run multiple feature files sequentially in Cucumber Webdriver IO

I have 3 feature files and corresponding Step definition files . How can I run these feature files one after the other in Cucumber WEBDRIVER IO. I am using VS Code.
Susa
  • 11
  • 2
1
vote
1 answer

ERROR @wdio/runner: Error: Failed to create session. [0-0] Unable to connect to "http://localhost:4723/"

ERROR @wdio/runner: Error: Failed to create session. [0-0] Unable to connect to "http://localhost:4723/", make sure browser driver is running on that address. jule@Ahmeds-MBP implement_typescript % npm run android.app > automation@1.0.0…
1
vote
1 answer

WebdriverIO the script that runs at the end of all test suites

I have a script that needs to be run after passing all the tests, how can this be done in Wdio? after: async function () { await deleteAllDataFromAccount() }, Such code in the configuration file does not help. How to solve this problem?
s3202
  • 11
  • 1
1
vote
1 answer

Starting Appium programatically using javascript

I am using Javascript with Node.JS and WDIO and trying to start appium programatically in beforeTest hook and stop it in afterTest hook. I've tried doing so with child_process or some appium-service builder but without any success. Is there a…
vPilu
  • 11
  • 1
1
vote
1 answer

IOS Automation How to Create Apple (Appstore Connect) Sandbox accounts Programatically?

Hi I am new to IOS automation and I have a scenario where we have to do an In-App purchase As for Testing these could be done by AppStore Connect Portal under User Access and create a Sandbox account but is there a way by which we can create an…
1
vote
0 answers

Having error in helper method in wdio in async mode

Helper files that use other browser commands have to be moved to before hook. NavigationByTextInSideMenu(page) { const sideMenu = {} await browser.waitUntil(async () => { await this.$$sideBarMenu.map(async (elem) =>…
Sergei
  • 39
  • 4
1
vote
0 answers

WDIO docker run: [1643987609.767][SEVERE]: bind() failed: Cannot assign requested address (99)

There is an error while run wdio test in Docker using Jenkins. I have no idea how to solve this problem :( The same config run successfully on local env (windows + docker). This is wdio config. I used default dockerOptions. wdio.conf import { config…
zeusV
  • 11
  • 2
1
vote
1 answer

setValue() / addValue() type into adress bar instead of selected element

I'm using WebdriverIO + devtools:puppeteer + cucumber + Firefox Nightly. When using setValue() / addValue(), the first letter of my input is typed into address bar, instead of selected element. The issue for same tests doesn't appear for mse or…
antiq
  • 11
  • 5
1
vote
2 answers

wdio-video-reporter - ERROR @wdio/runner: Error: Some reporters are still unsynced: Video

I added const video = require('wdio-video-reporter'); to wdio.conf.js I added to wdio.conf.js capabilities: [ { ... "appium:deviceType": "phone", "browserVersion": "73.0-phone-1", ... }, ], reporters: [ [ …
0
votes
0 answers

Set up running e2e tests using Expo and Appium

I have started to work with Appium a few days ago. Could you, please, help with next moment: I am using stack Appium + WebdriverIO + Mocha to run tests on real iOS devices. My developers team uses Expo framework to build React Native mobile…
Hellen
  • 11
  • 1
0
votes
0 answers

wdio Allure report - failed tests showing as 'unknown'

I have a bog standard Allure setup running with webdriver.io, and I'm able to generate reports fine. However, all the test runs which fail are marked as 'Unknown' within the report itself, which a) is not the correct status and b) seems to not allow…
Jason
  • 75
  • 1
  • 1
  • 8
0
votes
0 answers

How to mock WebdriverIO.Element with sinon-chai

I'm creating a web testing framework wrapping wdio.js. In my framework, I need to translate from my wrapper object to WebdriverIO.Element so that I can call getAttribute() which hangs off of $. But I can't figure out how to spy/stub/mock $ or…
Professor Tom
  • 352
  • 3
  • 16
0
votes
1 answer

WDIO runs both base wdio.conf file and child file rather than just the child

Thanks in advance for support here. I am using node 16 and wdio version 8 to build a simple set of tests. To get started on the right track I have been trying to create a base wdio.conf.base config file and a couple of children to inherit settings…
Driver
  • 317
  • 1
  • 4
  • 18
0
votes
0 answers

How to tag an individual with the help of teams webhook?

I am trying to notify the test failures via teams channel.So whenever a test fails, a notification will be sent to a teams channel with the help of teams incoming webhooks. Along with the above details, I would like to tag people who are…
1
2
3
8 9