Forum Discussion
Thank you very much for responding.
In this case, it does find the object, every time. Then it seems like mouse click even gets executed to a certain degree. What I mean by that is, since the curser move into the correct position for the mouse click, I assume mouse click gets executed. However, "OK" button never gets pressed.
Another possibility could be that there is a "flicker" in the object. It is found, it exists, and the click method appears to work, but the object may change state somewhere in the process where the click may execute but it may not actually be valid at that point. This is something I've rarely seen in my experience but it is, technically, possible.
Just as a diagnostic bit, have you tried putting a Delay call in the code before your call to click? Add maybe a second or two delay before the click to give the application a chance to "stabilize" before the click is excuted. What this might indicate, if it works, is that you need to do some additional checks other than "exists" to make sure that you can actually click the button. You might need to use a WaitProperty call on the button to make sure it's enabled.
Just a few things to try.