Skip to content

Unable to use with latest version of WebdriverIO #320

@APshenkin

Description

@APshenkin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions