How to find element by content-desc in multilanguage app?


Is there a way to find an element using content-desc property if it is different in each language? I see its values in output of driver.getAppStrings(), but which locator strategy should I use to get it?


Hi @retadmfloyd,

You might try resource-id if available or try CSS or XPath locator strategies.


@sujata_kalluri, yes, currently it works with UIAutomator by class name (android.widget.ImageButton), but there is an unique identifier and I think it should be used. Thanks anyway.