📅  最后修改于: 2022-03-11 15:00:16.747000             🧑  作者: Mango
By using Actions class
WebElement element = driver.findElement(By.xpath("xpath"));
Actions action = new Actions(driver);
action.moveToElement(element).perform();