【Selenium】selenium.common.exceptions.ElementClickInterceptedException


出現問題:
使用代碼點擊提交按鈕:

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

出現如下異常:
selenium.common.exceptions.ElementClickInterceptedException: Message: element click intercepted: Element <\button type="submit" id="submit" class="btn btn-wide btn-primary" data-loading="稍候...">...</button> is not clickable at point (518, 660). Other element would receive the click: <ul class="breadcrumb">...</ul>
(Session info: chrome=78.0.3904.108)

解決方法:
使用回車代替點擊

driver.find_element(By.CSS_SELECTOR,"#submit").send_keys(Keys.ENTER)


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM