📜  java webelement如何双击-Java代码示例

📅  最后修改于: 2022-03-11 14:52:09.353000             🧑  作者: Mango

代码示例1
driver.get("URL of target website or webpage"); // Define the URL of the target website.
Actions act = new Actions(driver);

//Double click on element
WebElement ele = driver.findElement(By.xpath("XPath of the element")); 
act.doubleClick(ele).perform();