[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()

 

posted @ 2015-05-22 17:07  *飞飞*  阅读(696)  评论(0编辑  收藏  举报