Skip to content

V1.20.1 XQueryError:6 - "invalid type" error in hybrid app #319

@APshenkin

Description

@APshenkin

After upgrading to 1.20.1 it's not possible to interact with elements in webview in hybrid app. Any command return error XQueryError:6 - \"invalid type\"

Downgrading to 1.19.1 solve the issue.

2024-10-28T16:08:35.910Z DEBUG @wdio/appium-service: [5f2147ab][WD Proxy] Proxying [POST /element] to [POST http://127.0.0.1:10100/session/0BDCDF3C-D307-4B37-AD72-AD4AB420F640/element] with body: {"using":"xpath","value":"//XCUIElementTypeButton[@label=\"create-pasword-button\"]"}

2024-10-28T16:08:35.918Z DEBUG @wdio/appium-service: [5f2147ab][WebDriverAgentMac] [xcodebuild] t =     3.38s Find the Application 'my.app.bundle'

2024-10-28T16:08:36.211Z DEBUG @wdio/appium-service: [5f2147ab][WD Proxy] Got response with status 400: {"value":{"error":"invalid selector","message":"XQueryError:6 - \"invalid type\"","traceback":"(\n\t0   CoreFoundation                      0x000000018c8b62ec __exceptionPreprocess + 176\n\t1   libobjc.A.dylib                     0x000000018c39a158 objc_exception_throw + 60\n\t2   WebDriverAgentLib                   0x00000001053bdb18 +[FBXPath matchesWithRootElement:forQuery:includeOnlyFirstMatch:] + 664\n\t3   WebDriverAgentLib                   0x00000001053b8e50 -[XCUIElement(FBFind) fb_descendantsMatchingXPathQuery:shouldReturnAfterFirstMatch:] + 156\n\t4   WebDriverAgentLib                   0x00000001053b662c +[FBFindElementCommands elementsUsing:withValue:under:shouldReturnAfterFirstMatch:] + 328\n\t5   WebDriverAgentLib                   0x00000001053b6484 +[FBFindElementCommands elementUsing:withValue:under:] + 132\n\t6   WebDriverAgentLib                   0x00000001053b5698 +[FBFindElementCommands handleFindElement:] + 236\n\t7   WebDriverAgentLib                   0x00000001053f8f44 -[FBRoute_...

2024-10-28T16:08:36.212Z DEBUG @wdio/appium-service: [5f2147ab][W3C] Matched W3C error code 'invalid selector' to InvalidSelectorError

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