appium-uiautomator2-driver icon indicating copy to clipboard operation
appium-uiautomator2-driver copied to clipboard

UiSelector being deprecated

Open itkhanz opened this issue 6 months ago • 2 comments

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

itkhanz avatar Aug 07 '24 13:08 itkhanz