We use the Java client for selenium, and sometimes our tests use the Java Robot to move the mouse and click when we cannot directly interact with the web browser. This has flaws (for example, the browser should be in the foreground, and accuracy can be a bit complicated), but when running tests on a virtual machine, these flaws are minimized.
source
share