[Selenium] Actions.doubleClick
java:
WebElement el = page.getTable_AssetMixesName().get(index); Actions action = new Actions(driver); action.doubleClick(el); action.sendKeys(name).build().perform();
python:
#引入包 from selenium.webdriver import ActionChains b = driver.find_element(By.ID,'button') ActionChains(driver).double_click(b).perform() ActionChains(driver).context_click(b).perform()