Element Identification when id are not unique

We are seeing a problem where the ID of the elements are dynamic and keeps changing when launched afresh. How can this be handled using Silk Mobile?

Parents
  • If the text value is the only unique property for the element which is then different when localized, it would better to implement a unique ID such as an automation id or property which is consistent across any local.

    The only recommended solutions I can suggest would be as previously advised

    1. Use Image Recognition to interact with the device

    2. Construct a unique xpath locator for the element using a parent element

Reply
  • If the text value is the only unique property for the element which is then different when localized, it would better to implement a unique ID such as an automation id or property which is consistent across any local.

    The only recommended solutions I can suggest would be as previously advised

    1. Use Image Recognition to interact with the device

    2. Construct a unique xpath locator for the element using a parent element

Children
No Data