-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Add support for resource-id #9777
Copy link
Copy link
Closed
Labels
Ran CommandsOne of our bots successfully processed a command.One of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.
Metadata
Metadata
Assignees
Labels
Ran CommandsOne of our bots successfully processed a command.One of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Issue Description
There currently isn't a way to find elements by resource-id using appium/uiautomatorviewer.
react-nativecurrently supportscontentDescriptionviaaccessibilityLabel. This is great for clickable elements, but not so great for testing other things like splash screen visibility.I'd be more than willing to add support for this, but am currently not aware of how
react-nativebuilds the android views. If someone could give me some guidance on howandroid:idcould be added to a view then I'd most certainly be willing to give it a shot. My understanding ofandroid:id(per the View docs on IDs), is that it must be set in the XML prior to view creation.I don't believe this is a duplicate of #7135, because I'm not proposing that we break the way testID currently works, more that I feel it would be nice if
testIDcould add it's value to the corresponding view component in the XML.Steps to Reproduce / Code Snippets
testID="something"to any component (e.g.View)uiautomatorviewerYou'll notice that
resource-idis emptyExpected Results
resource-idhas a value likecom.myApp:id/somethingAdditional Information
0.32