How to reuse MobileElements while using Appium

In my app I’ve a pattern code as a security authentication.

While I’m log in , I need to set up a new pattern , and then to repeat it for confirmation.

I was thinking to reuse the “dots” elements for second attempt of the pattern selection.

The problem is , each attempt , Appium’s server set a new ID to the Mobile Element , and it seems that the step is fail due to NoSuchElement Exception.

Of course the first attempt with the same elements is working, but the second one is fails…

Any idea how I can reuse elements ?

1 Like

you found the solution?