1,758 questions
0
votes
0
answers
26
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
61
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
49
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
35
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
110
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
213
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
76
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
57
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
41
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 ...
0
votes
0
answers
139
views
webdriverIO, When switch context to 'WEBVIEW_chrome' I can't t set a value in a textField
I am new on webdriverIO, I am trying to implement the Page Model Object in a hybrid app, when do loginPage.login(user, pass) is calling and I'm trying to setValue I am getting errors, the value could ...
0
votes
0
answers
32
views
How to avoid session cleanup between sessions while using Appium + webdriver.io?
I am using webdriver.io and Appium to test my apps on Android. I am hitting an issue regarding sessions in Chrome. When I login to a website and close Chrome and re-open it, I can see my session. When ...
1
vote
0
answers
79
views
I'm facing an issue while running my WebdriverIO tests with Firefox. The error message states:
ERROR @wdio/runner: Error: Failed to create session.
Unable to connect to "http://localhost:60284/", make sure the browser driver is running on that address.
It seems like the service ...
0
votes
0
answers
35
views
Wdio Cucumber filter steps in feature file based on tag
I've wdio cucumber feature file:
@T555
Feature: T555 Car Purchase Flow
Background:
Given I am logged in
Scenario: Verify the process of purchasing T555 Car
Given I navigate to &...
1
vote
1
answer
151
views
TypeError: this[#browser].sessionSubscribe is not a function
I'm using webDriver.io with cucumber to automate mobile apps
this is my package.json file
{
"name": "webdriverio-appium-cucumber-boilerplate",
"license": "MIT&...
0
votes
0
answers
47
views
Why does my angular app has an empty root object in the jenkinspipeline?
I have an Angular-App which I would like to test with webdriverio in our Jenkins-Pipeline.
I configured wdio to run some test. At the moment, those are pritty simple: open up the app and click on a ...
0
votes
0
answers
78
views
element not clickable after element.waitForClickable() returns
running on windows 11 via git bash shell in visual studio code using:
"@wdio/cli": "^9.7.1",
"@wdio/devtools-service": "^8.41.0",
"@wdio/...
2
votes
0
answers
117
views
Electron + Mocha + WDIO unable to mock ipcMain calls
Update: Created Minimal reproducible example on GitHub.
I'm having an issue with mocking ipcMain in wdio + electron + mocha. I have a running electron app that I'm trying to e2e test, but I'm unable ...
1
vote
0
answers
105
views
How to extend and use WebdriverIO V9 capabilities
How to extend WebdriverIO V9 capability to add some additional parameters.I have tried the following method, but it's not met my requirement.
wdio.conf.ts
interface CustomParams {
testCaseId?: ...
0
votes
0
answers
29
views
WebdriverIO: can't access window attribute
I'm having trouble accessing the window attribute in WebdriverIO testing.
In the JavaScript code I create a new instance of OpenLayers:
import Map from 'ol/Map.js';
import View from 'ol/View.js';
...
0
votes
1
answer
125
views
How to print to stdout or console.log in wdio repl
I am using appium and webdriverio for some mobile app testing. I am debugging some code in the wdio REPL, which I run with npx wdio repl {wdio.conf.js} -h {host} -p {port}. The REPL seems to be ...
1
vote
1
answer
141
views
WebdriverIO "Unable to open 'badging': No such file or directory"
I'm having trouble running E2E tests on AWS DeviceFarm. Have been getting this error when trying to run Appium via webdriverIO:
2025-01-15T14:15:06.904Z WARN webdriver: WebDriverError: An unknown ...
0
votes
0
answers
30
views
Error Property 'info' does not exist on type 'LoggerInterface'.ts(2339)
I want to use @wdio/logger service for logging purpose. When I simply try to use the code it shows the error Property 'info' does not exist on type 'LoggerInterface'.ts(2339).
import logger from '@...
0
votes
0
answers
31
views
Is it possible to access the HTML rendered inside of an embed element, using WebDriver IO?
I'm trying to automate testing of the built-in Chrome PDF viewer, specifically, accessing the Download button on the PDF viewer toolbar. The crux of the problem is accessing the correct DOM. I've ...
1
vote
0
answers
71
views
Two browser stack sessions are triggering for a single test execution
I have Appium + WebdriverIO set up to run mobile test automations and tests are executing at BrowserStack.
I have written my tests are at feature files as below.
Feature: Home verification
Scenario: ...
0
votes
0
answers
106
views
Expect the size of a filtered `ChainablePromiseArray` in WebdriverIO v9
I am quite new to WebdriverIO.
I have some experience with TestCafe, but the way expectations work is fundamentally different.
I want to add the "Missing support for attributes, properties and ...
0
votes
0
answers
136
views
Not able to capture network traffic on iphone using http-mitm-proxy
I am trying to capture network traffic of iPhone app (using WebdriverIO test framework) using
https://www.npmjs.com/package/http-mitm-proxy but its not working for me. (there are no logs captured but ...
0
votes
1
answer
192
views
WebDriverError: session not created: 'DevToolsActivePort file doesn't exist' since upgrade from chrome v127 to v128 (or higher) in docker environment
I'm trying to run webdriver.io tests in a docker container against a recent chrome version.
When using a docker image with chrome 127, my tests run fine. After upgrading chrome to v128 or later, I get ...
0
votes
0
answers
50
views
Accessing iFrame within iFrame with webdriver, JS
Simply put, for some reason the site I'm working with has set up this section of inputs as follows:
<iframe title="parentIframe">
#document (https://www.website.com)
<!DOCTYPE ...
0
votes
1
answer
248
views
Switch context to webview is failed in hybrid mobile application automation using webdriveIO
I am trying setup webview automation for my app which is running in Android and iOS devices as a hybrid application(written in react native0
While running my automation code
I am trying to switch ...
0
votes
1
answer
267
views
Can't execute tests after upgrading WebdriverIO 8.32.x to 9.2.x
We have been using WebdriverIO 8.32.3 to test apps for a long time and it has been very stable. We have tried to upgrade to WebdriverIO 9.2.1, but now it's throwing an error.
When I try to execute:
...
0
votes
1
answer
82
views
Unable to get objects in iframe using WebDriverIO (typescript)
I have tried every means, three browsers (Chrome, FireFox, Edge),
Trying to use WebDriverIO to locate objects within an iframe has failed. Especially for testing it, I wrote the simplest html
outer....
0
votes
1
answer
98
views
Elements are not displayed after page redirection in automated tests in WebdriverIO
I have flaky tests, with tests sometimes passing and failing. Main cause I found is the only time when redirected to that certain page the elements cannot be displayed, existed, clicked etc. Tried to ...
1
vote
0
answers
110
views
"Unknown method: Not implemented yet for find" in Flutter app automation using appium webdriverIO
For Flutter app, we are using
appium-flutter-finder and appium-flutter-driver
webdriverIO framework using Typescript
Scenario:
Login page: Username and password, click on login button
Redirected to ...
1
vote
0
answers
225
views
Cannot connect to the Dart Observatory URL ws://127.0.0.1:42545/eCMb9Es1JfQ=/ws
We have mobile app build using** Flutter**. We got the debug.apk from the dev team.
We need to use appium webdriverIO using typescript for mobile automation with appium flutter finder
Using macOS &...
0
votes
2
answers
203
views
How to assert a string "toBe" one of multiple values in webdriverIO
I would like to have a flexible assertion which checks if a string is one of several values.
I have just started running my WebdriverIO + Mocha tests on BrowserStack, but they have US locale machines ...
0
votes
1
answer
121
views
Webdriverio V9 : - Unable to upload file in headless mode
Recently I have updated from v8 to v9, and file upload was working fine in non-headless mode. But the same code fails in headless mode. It would be good, if anyone help on this.
capabilities: [
...
1
vote
0
answers
104
views
How to specify axeDevToolsMobile plugin to WebdriverIO appium service?
The symptoms of my issue is that when I call axe:scan I get the following messages returned to the console:
2024-07-03T12:57:29.185Z DEBUG webdriver: request failed due to response error: unknown ...
0
votes
1
answer
64
views
How to verify that element is not visible in webdriverio in mocha javascript
I am currently automating tasks in JavaScript using the WebdriverIO framework with Mocha
How can I verify that an element is not visible in WebdriverIO within the Mocha framework?
I want Javascript ...
0
votes
2
answers
851
views
Getting Unable to connect to "http://localhost:4723/wd/hub" error with node 18 when run against mobile Apps
I have webdriverio + cucumberjs based tests and When using node 18, I,m getting error - http://localhost:4723/wd/hub
Setup:
node v18.20.3 (npm v10.7.0)
[email protected]
[email protected]
I am able to run ...
0
votes
0
answers
121
views
Not able to run the webdriverIO test cases on ubuntu jenkins server getting browser is crashed message on console
I have written test cases using webdriverIO with cucumber and pushed everything on github and checked my local, it is working fine
I have configured Jenkins with github
Before that jenkins was ...
4
votes
0
answers
133
views
How to mock IPC calls in electron when using WebDriverIO with Mocha
I have an electron-vite-react application that has several IPC calls from browser to main process. I want to mock the behavior of these IPC calls when I'm writing e2e tests for the app using ...
0
votes
1
answer
102
views
how to manipulate two different applications that should communicate with each other on two different emulators at the same time (webdriverio)?
I have two applications one is for customer the other is for pickers. Once the customer has inserted his order, the picker app should receive a notification where if approved the customers order ...
1
vote
0
answers
83
views
How to config babel to compile import from ES6
I have a problem about config babel to compile import from ES6 javascript. I use babel.config.js
this is file wdio.conf.js, i want to compile import chai from "chai" but i am fail.
require('@...
0
votes
1
answer
336
views
Resolve following error - Original error: Cannot read properties of undefined (reading 'element')
I am relatively new to appium automation.
All of a sudden scrolling via Appium on Android has stopped.
I am now getting the following error:
An unknown server-side error occurred while processing the ...
1
vote
2
answers
3k
views
Runnig allure serve to generate reports gives Error: spawn EINVAL
>allure serve
node:internal/child_process:421
throw new ErrnoException(err, 'spawn');
^
Error: spawn EINVAL
at ChildProcess.spawn (node:internal/child_process:421:11)
at Object....