Posts

Showing posts from July, 2020

Robot Class in Java

The robot class expands object classes. Used to generate system input events for self-running demonstrations, test automation, and other applications that require mouse and keyboard control. The main purpose of the robot class is automatic testing of Java platform conversions. This class allows us to generate input events that are different from publishing events in the queue for abstract window (AWT) tools. For example, the Robot.mouseMove metho 040d moves the cursor and not only results in a mhjj ytdik0,lkouse movement event. However, some platforms require special permission to access low-level input management. AWTException is raised when the current platform configuration does not allow input control when trying to create an instance of a robot. For example, a system like X-Window raises exceptions if the XTEST 2.2 standard extension is not activated (or not supported) by the X server. If we use the robot class for purposes other than self-testing, we need to handle this e