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

Disparity of Selector behavior between Android and iOS #1554

Closed
bartekpacia opened this issue Jul 19, 2023 · 2 comments · Fixed by #2030
Closed

Disparity of Selector behavior between Android and iOS #1554

bartekpacia opened this issue Jul 19, 2023 · 2 comments · Fixed by #2030
Labels
P2 Issues not at the top of the work list package: patrol Related to the patrol package (native automation, test bundling) platform: android Android is affected platform: ios iOS is affected

Comments

@bartekpacia
Copy link
Contributor

bartekpacia commented Jul 19, 2023

Patrol has the Selector and NativeView classes. They provide cross-platform interaction with the underlying native UI.

Currently, there are many differences Selector and NativeView between its behavior on Android and iOS.

More about these 2 classes

Selector

On Android, Selectors are translated to BySelectors and/or UiSelector.

On iOS, Selectors are translated to XCUIElementQuery-ies. Sometimes, we construct them using NSSelector. They allow for searching using many view properties: identifier, title, label, value, and placeholderValue.

NativeView

On Android, NativeViews are created from UiObject2s.

On iOS, NativeViews are created from XCUIElements.

Problems

@bartekpacia bartekpacia added bug Something isn't working platform: ios iOS is affected platform: android Android is affected a: native automation labels Jul 19, 2023
@fylyppo
Copy link
Collaborator

fylyppo commented Aug 4, 2023

On iOS Selector.className and Selector.instance are taken into account also.
It'll be good to have also textStartsWith and textContains on iOS.

@bartekpacia bartekpacia added package: patrol Related to the patrol package (native automation, test bundling) and removed a: native automation labels Oct 26, 2023
@mateuszwojtczak mateuszwojtczak added the P1 High-priority issues at the top of the work list label Nov 15, 2023
@jBorkowska jBorkowska added P2 Issues not at the top of the work list and removed P1 High-priority issues at the top of the work list labels Nov 27, 2023
@piotruela piotruela self-assigned this Dec 27, 2023
@piotruela piotruela removed their assignment Jan 9, 2024
@jBorkowska jBorkowska removed the bug Something isn't working label Feb 7, 2024
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar problem, please file a new issue. Make sure to follow the template and provide all the information necessary to reproduce the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
P2 Issues not at the top of the work list package: patrol Related to the patrol package (native automation, test bundling) platform: android Android is affected platform: ios iOS is affected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants