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

TestID value is put into the Android's View tag #16137

Closed
sonianin opened this issue Sep 29, 2017 · 6 comments
Closed

TestID value is put into the Android's View tag #16137

sonianin opened this issue Sep 29, 2017 · 6 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@sonianin
Copy link

Currently TestID value is put into the Android's View tag, but it is not available via Appium on Android.
UIAutomator2 is not planning to support it: appium/appium#6025 (comment).
I'm aware of a workaround to use AccessibilityLabel (which is the only option), but this information is intended to be read to the end user so I would prefer not to put some testIDs in there.
Are there any plans to work on this issue?

@chirag04
Copy link
Contributor

@sonianin Please use the issue template going forward.

As for TestID on android: it has been discussed in the past here: #7135 and #9942

Let's continue on those issues.

@sonianin
Copy link
Author

@chirag04 Both issue and PR you are referring to are closed by now... Is anyone going to work on the closed issue?

@chirag04
Copy link
Contributor

nobody that i know is working on it, i can't speak for fb tho. you can put your proposal there if any. Also suggest reading through those issue to see if it helps and come up with a PR.

@vadympavlenko
Copy link

@chirag04
Given there is a problem - for Android testing with Appium you could use only AccessibilityLabel - what would be the proper way to request the fix/feature?

As was mentioned above using testID seems to be viable solution (ReactNative.testID -> Android.resource-id)

@chirag04
Copy link
Contributor

The best way I can tell you is to come up with a proposal and open a PR with POC. If you need this you will have to built it.

I understand this has been a long standing issue. There are tools like detox which now work on android as well, so if you can’t build I suggest you look at them.

@vadympavlenko
Copy link

Ok, thanks for the reply.

Regarding Detox - they "Currently supports iOS, Android support is coming - status page.". As far as I can see it is in beta with all the risks that come with. Though given all the circumstances it looks like decent option.

Regarding long standing issue - it could be summarized by comment from #7135 on Jul 25 - "we are suffering and they don't care..." :)

@facebook facebook locked as resolved and limited conversation to collaborators Sep 29, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Sep 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

4 participants