Hi all,
After running multiple methods and the first method passes, the second method starts and clicks on an incorrect element.
I tried wait to visibility/ Thread sleep/ Clear element, but always wrong element is clicked.
based on how objects work, it’s clicking on the thing you located, if however the app is doing something else behind your back, you may just be observing an issue where the element you located is not the right element, but works intermently in some scenarios because the app is using the button as a dynamic element and changing it’s text and meaning at runtime, or the element is merely moving up and down the Z order at the time you click.
Note that the screenshot is often about 1000ms after you click, so the screenshot could be very old by the time it happens.