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

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

Open
Dor-bl opened this issue Dec 21, 2023 · 0 comments

Comments

@Dor-bl
Copy link
Contributor

Dor-bl commented Dec 21, 2023

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?

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