解决办法,通过ActionChains
from selenium.webdriver import ActionChains
action = ActionChains(self.driver)
action.move_to_element(el)
action.click(el)
action.send_keys("SELECT * FROM `channel` ")
action.perform() #这个一定要的
解决办法,通过ActionChains
from selenium.webdriver import ActionChains
action = ActionChains(self.driver)
action.move_to_element(el)
action.click(el)
action.send_keys("SELECT * FROM `channel` ")
action.perform() #这个一定要的