Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use with latest version of WebdriverIO #320

Open
APshenkin opened this issue Oct 28, 2024 · 0 comments
Open

Unable to use with latest version of WebdriverIO #320

APshenkin opened this issue Oct 28, 2024 · 0 comments

Comments

@APshenkin
Copy link

APshenkin commented Oct 28, 2024

Latest version of WebdriverIO is calling getWindowHandle() method for any kind of application.

this returns error from mac2 driver

[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"

Seems some classic commands needs to be implemented.

Created issue for WebdriverIO, but they recommend to open it here webdriverio/webdriverio#13813

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant