Hi @Kavita, Actions class is used to control the actions of keyboard and mouse. Selenium has the built-in ability to handle various types of keyboard and mouse events. In order to do action events, you need to use org.openqa.selenium.interactions Actions class. The user-facing API for emulating complex user gestures. This API includes actions such as drag and drop, clicking multiple elements. Use following lines of code to create an action class object and focus on an element:
Actions action=new Actions(driver);
action.moveToElement(element).perform();