Robot class in Selenium is used to give a command to a browser to move to the specific coordinates in it. The Robot class is a browser emulator for Selenium Webdriver. It is a proxy for a real browser, and can be used to automate interactions with web pages, just like a real user would. Robot is created on the fly by passing a desired User Agent to a special WebDriver instance. Robot class is an interface in Selenium Webdriver which is used to create new locators (i.e. find elements). There are various locator creation methods like By.id(), By.name(), By.linkText(), By.xpath() etc.