Forum Discussion

SimpleMe's avatar
SimpleMe
Occasional Contributor
6 years ago

What attribute to use for name mapping Android object?

Hello,

I've been using TC for iOS for a little over a year, off and on. For iOS, we use "accessibilityLabel" for name mapping to have a specific attribute to an object.

What is the standard that is used for Android?

 

Thanks.

5 Replies

  • cunderw's avatar
    cunderw
    Community Hero

    It really depends on the application and how it was developed, there isn't one hard and fast rule. We ended up using mContentDescription when automating a React Native app for example as that's where our developers put our automation tags. 

     

     

    • SimpleMe's avatar
      SimpleMe
      Occasional Contributor

      Thanks. I'm still learing about Android. I believe our dev will be using Kotlin. Tags for that?

      • cunderw's avatar
        cunderw
        Community Hero

        Kontlin is just a programming language, not a UI tool kit nor do I know what kind of properties will be set, so again it completely depends on what the developers use when building UI components.

         

        Without seeing your application I have no idea what properties would give you unique values, or what combination. There is nothing that says this platform + this language means use this property all the time.