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

UiSelector being deprecated #812

Open
itkhanz opened this issue Aug 7, 2024 · 2 comments
Open

UiSelector being deprecated #812

itkhanz opened this issue Aug 7, 2024 · 2 comments

Comments

@itkhanz
Copy link

itkhanz commented Aug 7, 2024

Hi,
I wanted to bring this into your attention that UiSelector is being deprecated in future releases for Android UiAutomator2.
Please see https://developer.android.com/training/testing/other-components/ui-automator

Screenshot 2024-08-07 at 15 40 00

If this is true, does that mean any locators using UiSelector will not work in future?

If yes, then would be good to also mark it deprecated soon in Appium so users can adapt their code bases accordingly with alternate locator strategies. Moreover to mark this upcoming deprecation here in docs as well and provide some alternate examples:-
https://github.com/appium/appium-uiautomator2-driver/blob/master/docs/uiautomator-uiselector.md

Moving forward, what would be the recommendation from Appium team to build android locators? Does Appium support building locators via other APIs such as with BySelector?

See also #13670

@mykola-mokhnach
Copy link
Contributor

mykola-mokhnach commented Aug 7, 2024

Right now it is probably too early to discuss the deprecation topic, although it definitely makes sense to add the above link to the driver documentation now. Eventually we will have no choice in following Google when they decide to kill UiObject completely.

cc @KazuCocoa @jlipps

Copy link
Member

jlipps commented Aug 30, 2024

Yeah, good point. Maybe we can create a BySelector parser as we did for UiObject?

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

3 participants