I have a requirement that when a certain automation script is run, the browser should show the cursor moving from one field to another as the script moves ahead. I am not sure about what exactly I need to do to get it done. I used the Action class to implement it but it's not working.
Please find the code I have implemented below:
public void MouseHover(WebElement Mouse,WebDriver driver) throws InterruptedException
{
Actions act = new Actions(driver);
act.moveToElement(Mouse).build().perform();
System.out.println("Curser movement Performed Successfully");
}