selenium 双击元素

#定位元素
pod_input = driver.find_element(By.ID, 'j_idt9:searchForm:j_idt11:toSelectorLocation:toSelectorLocation_input')

#双击这个 pod_input
from selenium.webdriver import ActionChains
action_chains = ActionChains(driver)
action_chains.double_click(pod_input).perform()

 

posted @ 2019-03-18 16:15  AngDH  阅读(1210)  评论(0编辑  收藏  举报