📜  如何在 selenium 中鼠标元素 - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:16.747000             🧑  作者: Mango

代码示例1
By using Actions class

WebElement element = driver.findElement(By.xpath("xpath"));
Actions action = new Actions(driver);
action.moveToElement(element).perform();