It might help if you quote the method of remote connection you are using.
I assume that you are using standard Microsoft Remote Desktop (RDP).
This type of failure is very common and can happen even if you minimize the window.
For simplicity, Windows does not keep GUI on a virtual machine.
There are two references that might help:
https://support.smartbear.com/testc...with/running/via-rdp/in-minimized-window.html
https://social.technet.microsoft.co...-it-is-running-in-minimized?forum=winserverTS
"On
your local computer, close all open Remote Desktop sessions.
- Launch the Registry editor (regedit.exe).
- Navigate to one of the following Registry keys, depending on whether you wish to modify the Remote Desktop settings only for the current user or for all users on the computer:
HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client
HKEY_LOCAL_MACHINE\Software\Microsoft\Terminal Server Client
- Create a DWORD value named RemoteDesktop_SuppressWhenMinimized and set it to 2:
- Close the Registry Editor.
Now when you minimize the Remote Desktop Connection window on your computer, this will not affect the remote computer’s GUI and the GUI will be available to your automated tests."
Thank you Smart Bear.