I am trying to create a script for a new game and trying to recognize an image and click it. Sometimes the script finds the image but after multiple attempts also is unable to click it. While the other times on the same phone it does it very smoothly. I am completely baffled by this behavior, the log shows that both times, the image is recognized but sometimes it clicks and other times it doesn't even after multiple attempts.
If I click on the same screen by hand or touch it works. Has anybody noticed this behavior ??
Phone - Moto G5SPlus
PS: Debug via USB is on in developer mode. Tried alternate clicks, even they dont work when the click is not happening.