1,758 questions
Tooling
0
votes
2
replies
49
views
Best way to toggle airplane mode and mobile data on iOS during automation tests
I’m looking for a way to programmatically toggle airplane mode and mobile data on iOS devices during my automation tests.
Tech Stack:
-Automation: WebdriverIO
-Mobile automation: Appium
-Platform: iOS ...
0
votes
0
answers
30
views
WebdriverIO element selector not finding validation error text with xPath - returns false for isExisting() & isDisplayed()
I am testing a web UI using WebdriverIO, specifically an email send form. This test must ensure that the error helper text (like "email required") are displayed when submitting the form ...
0
votes
1
answer
72
views
Test fails with "expect(...).toHaveTextContaining is not a function"
I'm building an automation framework using Appium with WebdriverIO. The app isn't reading so I'm creating some quick tests to ensure the framework is robust. I've created a simple test to switch from ...
0
votes
0
answers
22
views
WebdriverIO launches MS Edge in app mode rather than a browser mode on Windows 11
I'm running test suite using WebdriverIO framework on Windows 11. When test starts the Edge browser gets opened in app mode rather than browser mode. In app mode I cant maximize it and cant scroll the ...
0
votes
0
answers
54
views
browser.mock() with wildcards doesn't work on Webdriverio v9
I used to have a mock for external images during e2e tests
const imageMock = await browser.mock('/my/company/resources/**', { method: 'get' })
await imageMock.respond(`${browser.options.baseUrl}/img/...
0
votes
0
answers
41
views
How to disable headless mode for gitlab-runner on windows
I have a test suite (webdriverio) which runs in headed mode outside of gitlab-runner. Whenever I put it into my pipeline, the tests become headless. That's generally okay, but I would need sometimes ...
0
votes
0
answers
51
views
YAML code to bring Allure tests report from Azure cloud cron-job back to Azure DevOps
I created an automation testing framework for a client using WebDriver I/O and JavaScript.
The BE lead helped me create the infrastructure needed to execute the tests on Docker. Now, due to client's ...
0
votes
0
answers
112
views
WebdriverIO v9 Error: Failed to fetch [POST] /session – WebDriver compatible server not running
I ran the following command in the terminal:
npm init wdio@latest . -- --yes
However, I encountered an error during the setup. Here’s what I’ve already tried:
Updated Chrome browser to version 138.0....
1
vote
0
answers
54
views
Getting error code: out of memory in chrome when i run webdriverio v8 test scenarios
Getting error in chrome when i run webdriverio v8 test scenarios:
out of memory
Recently upgraded from node 16 to v20 and updated scripts to use imports as ESM standards and avoided require()
...
0
votes
1
answer
220
views
Auto test executions stops and an error is displayed: WebDriver Bidi command "browsingContext.handleUserPrompt" failed with error: no such alert
I encountered this error during our test execution and I cannot find an appropriate fix on the WebdriverIO documentation
Error: WebDriver Bidi command "browsingContext.handleUserPrompt" ...
0
votes
1
answer
91
views
I can't seem to get .waitForDisplayed/exists methods to work for elements the moment i switch between apps
const el = browser.$('//android.view.View[@content-desc="Login"]');
await el.waitForDisplayed({timeout:5000});
if this snippet gets executed without shifting between apps, it works like a ...
0
votes
0
answers
31
views
how to re-try failed test case on test level not on the feature file level
I am using webDriverIo with Cucumber frame work. I have a feature files with 4 scenarios each , now with exiting re-try option , if one scenario is failed out of 4 scenarios then all 4 scenarios are ...
0
votes
0
answers
77
views
Appium `mobile: changePermissions` on Android (WebdriverIO)
I'm encountering an issue while trying to revoke Android permissions using the mobile: changePermissions command in my Appium tests (using WebdriverIO). My goal is to programmatically revoke a ...
0
votes
0
answers
60
views
Appium Android test: Cannot access window.Capacitor in WebView – 'invalid session id'
I'm writing an end-to-end test using Appium with WebdriverIO for an Android app built with Ionic/Capacitor.
I'm trying to test offline behavior, specifically checking if the app can manually set a ...
0
votes
0
answers
43
views
Appium context switching with multiple apps
I'm automating 2 hybrid apps, using the same driver. I have set apps in appium session capabilities settings like this:
'appium:app': app1path,
'appium:otherApp': [app2path]
Now I need to do ...