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
  • Hi PallaviKR

    If you controls do not have a unique ID or property which can be used to identify, there are two possible ways you can workaround this.

    1. You can extract the control and add it to your element repository and using the IMAGE property to interact with the device.

    2. You can construct a unique xpath locator using parent elements of the control you wish to interact with. This may not be possible if you do not have a unique parent or property which you can use to identify the control.

    Regards,

    Colin

Reply
  • Hi PallaviKR

    If you controls do not have a unique ID or property which can be used to identify, there are two possible ways you can workaround this.

    1. You can extract the control and add it to your element repository and using the IMAGE property to interact with the device.

    2. You can construct a unique xpath locator using parent elements of the control you wish to interact with. This may not be possible if you do not have a unique parent or property which you can use to identify the control.

    Regards,

    Colin

Children
No Data