python selenium定位元素报:error: cannot focus element

解决办法,通过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() #这个一定要的

猜你喜欢

转载自blog.csdn.net/qq_37969201/article/details/86472787
今日推荐