Skip to content

Can't locate elements with extra space in the value when using accessibility_id #412

@Dor-bl

Description

@Dor-bl

I'm having issues clicking/locating an element using the accessibility_id locator when the value has an extra space in it.
i.e. - accessibility_id="Autq5uSkuiE "
When I'm using the XPath locator, this code works:
Click Element //XCUIElementTypeStaticText[@name="Autq5uSkuiE "]
and this won't :
Click Element accessibility_id="Autq5uSkuiE "
I've checked on the Appium Python client and the locator works fine with the extra space.
maybe the robot parser cuts the space?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions