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