What is Robot Class in Selenium? Robot Class in Selenium is used to enable automated testing for implementations of Java platform. It generates input events in native systems for test automation, self-running demos and other applications where users need control over mouse and keyboard.
In this tutorial, we will understand an interesting Java class called the Robot class. The Selenium-based test automation frameworks widely use it for simulating the keyboard and mouse events.