-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Labels
Description
Have you read the Contributing Guidelines on issues?
- I have read the Contributing Guidelines on issues.
WebdriverIO Version
9.2.2
Node.js Version
20
Mode
WDIO Testrunner
Which capabilities are you using?
{
"platformName": "mac",
"appium:automationName": "mac2",
"appium:showServerLogs": true,
"appium:bundleId": "my_byndle_id",
"appium:appPath": "my_app_path"
}
What happened?
On startup of tests webdriverIO calls getWindowHandle()
method, which is not implemented in mac2 driver for appium.
Downgrading @wdio/local-runner to 9.2.1 solves the issue
What is your expected behavior?
No response
How to reproduce the bug.
Try to run automation for any application using mac2 driver
Relevant log output
[0-0] 2024-10-28T15:14:26.678Z INFO webdriver: COMMAND getWindowHandle()
[0-0] 2024-10-28T15:14:26.678Z INFO webdriver: [GET] http://127.0.0.1:4723/session/9bf46ad9-6725-41f3-a06b-847e14854913/window
2024-10-28T15:14:26.680Z DEBUG @wdio/appium-service: [9bf46ad9][HTTP] --> GET /session/9bf46ad9-6725-41f3-a06b-847e14854913/window {}
2024-10-28T15:14:26.681Z DEBUG @wdio/appium-service: [9bf46ad9][Mac2Driver@e826] Driver proxy active, passing request on via HTTP proxy
2024-10-28T15:14:26.682Z DEBUG @wdio/appium-service: [9bf46ad9][WD Proxy] Matched '/session/9bf46ad9-6725-41f3-a06b-847e14854913/window' to command name 'getWindowHandle'
2024-10-28T15:14:26.683Z DEBUG @wdio/appium-service: [9bf46ad9][Protocol Converter] Did not know how to rewrite the original URL '/session/9bf46ad9-6725-41f3-a06b-847e14854913/window' for W3C protocol
2024-10-28T15:14:26.683Z DEBUG @wdio/appium-service: [9bf46ad9][WD Proxy] Proxying [GET /session/9bf46ad9-6725-41f3-a06b-847e14854913/window] to [GET http://127.0.0.1:10100/session/D5D22723-608E-4351-BE09-117ABAA231A3/window] with no body
2024-10-28T15:14:26.687Z DEBUG @wdio/appium-service: [9bf46ad9][WD Proxy] Got response with status 404: {"value":{"error":"unknown command","message":"Unhandled endpoint: /session/D5D22723-608E-4351-BE09-117ABAA231A3/window -- http://127.0.0.1:10100/ with parameters {\n wildcards = (\n \"session/D5D22723-608E-4351-BE09-117ABAA231A3/window\"\n );\n}","traceback":""},"sessionId":"D5D22723-608E-4351-BE09-117ABAA231A3"}
2024-10-28T15:14:26.687Z DEBUG @wdio/appium-service: [9bf46ad9][W3C] Matched W3C error code 'unknown command' to UnknownCommandError
2024-10-28T15:14:26.695Z DEBUG @wdio/appium-service: [9bf46ad9][HTTP] <-- GET /session/9bf46ad9-6725-41f3-a06b-847e14854913/window 404 14 ms - 1066
[0-0] 2024-10-28T15:14:26.696Z DEBUG webdriver: request failed due to response error: unknown command
[0-0] 2024-10-28T15:14:26.697Z WARN webdriver: WebDriverError: Unhandled endpoint: /session/D5D22723-608E-4351-BE09-117ABAA231A3/window -- http://127.0.0.1:10100/ with parameters {
[0-0] wildcards = (
[0-0] "session/D5D22723-608E-4351-BE09-117ABAA231A3/window"
[0-0] );
[0-0] } when running "window" with method "GET"
### Code of Conduct
- [X] I agree to follow this project's Code of Conduct
### Is there an existing issue for this?
- [X] I have searched the existing issues