Skip to content

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

Description

@sonianin

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?

Activity

  1. chirag04 commented on Sep 29, 2017

    @chirag04
    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.

  2. sonianin commented on Sep 29, 2017

    @sonianin
    Author

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

  3. chirag04 commented on Sep 29, 2017

    @chirag04
    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.

  4. vadympavlenko commented on Sep 29, 2017

    @vadympavlenko

    @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)

  5. chirag04 commented on Sep 29, 2017

    @chirag04
    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.

  6. vadympavlenko commented on Sep 29, 2017

    @vadympavlenko

    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..." :)

  7. locked as resolved and limited conversation to collaborators on Sep 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions