Skip to content

appium-xcuitest-driver v9.10.5 / appium-server v2.19.0 - When using element.click() it results in appium server/WDA crashing on iOS 26 Simulator #2679

@zacht-saucelabs

Description

@zacht-saucelabs

This python test code produces the exception:

Python libs used:

  • Appium-Python-Client==5.2.4
  • selenium~=4.27.0
next_button = WebDriverWait(driver, 10).until(EC.presence_of_element_located((AppiumBy.ACCESSIBILITY_ID, "next_button")))
next_button.click()

Caps:

Creating session with W3C capabilities: {
  "alwaysMatch": {
    "platformName": "iOS",
    "appium:deviceName": "iPhone Air",
    "appium:platformVersion": "26.1",
    "appium:automationName": "XCUITest",
    "appium:newCommandTimeout": 3600,
    "appium:app": "/Users/zach/Src/appium-examples/app_downloads/HN-arm.zip"
  },

The same error happens if I use driver.find_element().

Crash:

[a6afa72b][XCUITestDriver@be2d] Executing command 'findElement'
[a6afa72b][XCUITestDriver@be2d] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, -ios class chain, accessibility id, css selector
[a6afa72b][XCUITestDriver@be2d] Waiting up to 0 ms for condition
[a6afa72b][XCUITestDriver@be2d] Matched '/element' to command name 'findElement'
[a6afa72b][XCUITestDriver@be2d] Proxying [POST /element] to [POST http://127.0.0.1:8100/session/6CECE2F5-2D5A-4D6A-A468-F832960820A6/element] with body: {"using":"accessibility id","value":"next_button"}
[a6afa72b][XCUITestDriver@be2d] Got response with status 200: {"value":{"ELEMENT":"1D000000-0000-0000-4A17-000000000000","element-6066-11e4-a52e-4f735466cecf":"1D000000-0000-0000-4A17-000000000000"},"sessionId":"6CECE2F5-2D5A-4D6A-A468-F832960820A6"}
[a6afa72b][XCUITestDriver@be2d] Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"1D000000-0000-0000-4A17-000000000000","ELEMENT":"1D000000-0000-0000-4A17-000000000000"}
[a6afa72b][HTTP] <-- POST /wd/hub/session/a6afa72b-29a0-43b0-9297-86a027f6a047/element 200 148 ms - 137 
[a6afa72b][HTTP] --> POST /wd/hub/session/a6afa72b-29a0-43b0-9297-86a027f6a047/element/1D000000-0000-0000-4A17-000000000000/click {}
[a6afa72b][XCUITestDriver@be2d] Driver proxy active, passing request on via HTTP proxy
[a6afa72b][XCUITestDriver@be2d] Executing command 'proxyReqRes'
[a6afa72b][XCUITestDriver@be2d] Matched '/wd/hub/session/a6afa72b-29a0-43b0-9297-86a027f6a047/element/1D000000-0000-0000-4A17-000000000000/click' to command name 'click'
[a6afa72b][XCUITestDriver@be2d] Proxying [POST /wd/hub/session/a6afa72b-29a0-43b0-9297-86a027f6a047/element/1D000000-0000-0000-4A17-000000000000/click] to [POST http://127.0.0.1:8100/session/a6afa72b-29a0-43b0-9297-86a027f6a047/element/1D000000-0000-0000-4A17-000000000000/click] with body: {}
[a6afa72b][XCUITestDriver@be2d] Got response with status 404: {"value":{"error":"invalid session id","message":"Session does not exist","traceback":"(\n\t0   CoreFoundation                      0x00000001057641d0 __exceptionPreprocess + 172\n\t1   libobjc.A.dylib                     0x0000000104c58094 objc_exception_throw + 72\n\t2   CoreFoundation                      0x0000000105763d64 -[NSException init] + 0\n\t3   WebDriverAgentLib                   0x000000016160ab24 -[FBRoute raiseNoSessionException] + 80\n\t4   WebDriverAgentLib                   0x000000016160aa78 -[FBRoute decorateRequest:] + 236\n\t5   WebDriverAgentLib                   0x0000000161609ee8 -[FBRoute_TargetAction mountRequest:intoResponse:] + 92\n\t6   WebDriverAgentLib                   0x00000001615f2ecc __37-[FBWebServer registerRouteHandlers:]_block_invoke + 428\n\t7   WebDriverAgentLib                   0x000000016162c1d0 -[RoutingHTTPServer handleRoute:withRequest:response:] + 168\n\t8   WebDriverAgentLib                   0x000000016162ccc4 __72-[RoutingHTTPServer routeMethod:withPath...
[a6afa72b][W3C] Matched W3C error code 'invalid session id' to NoSuchDriverError

is el.click() deprecated? I ask this because if I use the ActionChains API it works just fine, and I can replace my el.click calls with:

def click(driver, element):
    ActionChains(driver).move_to_element(element).pause(5).perform()

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