mafuko
15 years agoOccasional Contributor
ClickButton method doesn´t work
Recently I discovered a few situations when the ClickButton method doesn´t work. The button object exists, it´s enabled and visible but ClickButton only places the mouse cursor over the button but nothing else happens - no clicking occurs. Running the test again also doesn´t help - still the same. The only thing that helps is restarting the tested application (VB6 app), but after a few successful clicks on the same button, the situation repeats. There is a workaround: checking the state of application some 2 seconds after the click was performed and in case nothing changed, repeat the click, but this is no a systematic approach and it only messes up my code. Has anyone experienced similar problems?