Cannot perform a hovermouse action when the RDP is disconnected
I am getting this error when trying to hover over a blank screen. "There was an attempt to perform an action at point (436, 504), which is out of the window bounds." There's no other dialog or window open when I perform the mouseHover. The x and y are screen coordinates. I wonder why it's not working when I am disconnected from RDP. Rest of the tests pass. Is there a setting in TestComplete to get rid of this problem? I am using 14.93 version of TestComplete.
I have used hoverMouse function in order to hover over a blank screen. It works if I am connected to VM using RDP connection. It fails when I am disconnected to VM and run the Azure pipeline. I am hovering 20 times using the below code. No other objects are present when performing mouseHover
hoverMouse(obj, x, y)
{
Delay(3000, "Trying to Hover the Cursor at Desired Position");
for (i = 0; i<20; i++)
{
obj.HoverMouse(x,y)
}
}
Sorry Harshad, I miss understood your question.
Instead of using a hover function can you try setting the built in Sys.Desktop.MouseX and Sys.Desktop.MouseY properties like this:
Sys.Desktop.MouseX = 436;
Sys.Desktop.MouseY = 504;
Hopefully, the mouse will move to the location when not connected through the Remote Desktop.