I am facing the below issue while running scripts remotely.
a. I have a test suite out of which few scripts which has mouse/keyboard events such as – (Mouse real click, keyboard type, keypress events)
b. When I schedule this test in a remote machine at some time, the scripts with mouse/keyboard events are failing whereas all the other scripts are passing. I assume, it is because of the browser not being focused at that point of time. Same happens when I launch a remote machine through my laptop, run the keyboard events script and return back to my machine (minimizing the remote machine and returning to my machine’s session) – Script fails at the step which has keyboard/mouse events.
Could you please provide some solution to this?