I have tried everything to get the Wait for Image vanish to work on my RDP session by trying all multiple options. But nothing seems to work. I had to solve the problem by putting the subsequent activity of clicking the “Connect Button” within a Try-Catch, and in turn putting that Try-Catch into a Do…while loop. This is how the whole thing works.
Wait for Image vanish fails to work, and jumps directly to clicking the “Connect” button image.
I set a boolean value variable startUpError = True, and set up the design as follows:
Click Connect Image Action
Assign startUpError = False
startUpError = True
When startUpError = True
Clicking on the Connect button will fail because it hasn’t appeared on the screen yet.
So, the Try-Catch traps the click event, and as long as it keeps failing, the value of startUpError stays True to keep the Do-While loop running.
As soon as the image vanishes and the Connect button appears, the Try succeeds and sets the startUpError to False, and the Do-Loop Breaks.
It worked without any issues. But the Robot pegged the CPU at 30%!