标签:ble get cli span 鼠标事件 chain comm com 事件
from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver import ActionChains import time driver=webdriver.Chrome() driver.get(‘http://www.baidu.com‘) driver.find_element_by_id(‘kw‘).send_keys(1) time.sleep(2) driver.find_element_by_id(‘su‘).click() time.sleep(2) a=driver.find_element_by_id(‘kw‘) #双击 ActionChains(driver).double_click(a).perform() time.sleep(2) #ctrl+x ActionChains(driver).key_down(Keys.CONTROL).send_keys(‘x‘).key_up(Keys.CONTROL).perform() driver.quit()
标签:ble get cli span 鼠标事件 chain comm com 事件
原文地址:https://www.cnblogs.com/hyeonsori/p/13208770.html