Robot API has few dis-advantages mentioned below:
- Keyword/moved event will only works on current instance of Window. E.g. suppose a code is performing any robot class event, and during the code execution user has moved to some other screen then keyword/mouse event will occur on that screen.
- Most of the methods like mouseMove is screen resolution dependent so there might be a chance that code working on one machine might not work on other.
Robot class in AWT package is used to generate keyboard/mouse events to interact with OS windows and native apps.
The primary purpose of Robot is to support selenium automated tests project build in Java platform