I use Ranorex API to click a button on my application. My application is made by .NET 2.0, running on a remote server and I want it to be running repeatedly in an unattended mode.
Firstly, I use button.MoveTo(), and button.Click(). It works well when I'm watching it. But if I switch to my computer, and after several minutes, get back to this server, I find the click() can't work.
I think the Click() function can't work in an attended mode. So I use button.Press() to replace MoveTo and Click. This time the button did work (because i can see the result) however I also get an exception saying "button press fail". I'm confused...
Any clarification for this issue is highly appreciated!