【Selenium】ElementClickInterceptedException

出现问题:
使用代码点击提交按钮:

driver.find_element(By.CSS_SELECTOR,"#submit").click()

出现如下异常:
selenium.common.exceptions.ElementClickInterceptedException: Message: element click intercepted: Element is not clickable at point (518, 660). Other element would receive the click:


(Session info: chrome=78.0.3904.108)

解决方法:
使用回车代替点击

driver.find_element(By.CSS_SELECTOR,"#submit").send_keys(Keys.ENTER)
上一篇:攻防世界进阶--upload1


下一篇:线程池