久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

selenium.common.exceptions.ElementClickInterceptedException:消

selenium.common.exceptions.ElementClickInterceptedException: Message: element click intercepted: Element is not clickable with Selenium and Python(selenium.common.exceptions.ElementClickInterceptedException:消息:元素點擊被攔截:元素不
本文介紹了selenium.common.exceptions.ElementClickInterceptedException:消息:元素點擊被攔截:元素不可點擊 Selenium 和 Python的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我目前正在從事一個自動填寫表格的項目.填寫表格時會出現下一個按鈕,這就是它給我一個錯誤的原因.

I am currently working on a project which fills a form automatically. And the next button appears when the form is filled, that's why it gives me an error.

我試過了:

WebDriverWait(driver, 10).until(EC.element_to_be_clickable((By.XPATH,"http://input[@type='button' and @class='button']")))
Next = driver.find_element_by_xpath("http://input[@type='button' and @class='button']")
Next.click()

HTML:

<span class="btn">
    <input type="button" value="Next" class="button" payoneer="Button" data-controltovalidate="PersonalDetails" data-onfieldsvalidation="ToggleNextButton" data-onclick="UpdateServerWithCurrentSection();" id="PersonalDetailsButton">
     </input>
     <div class="clearfix"></div>
</span>

錯誤:

selenium.common.exceptions.ElementClickInterceptedException:消息:元素點擊被攔截:元素在點 (203, 530) 處不可點擊.其他元素會收到點擊:... (Session info: chrome=76.0.3809.132)

selenium.common.exceptions.ElementClickInterceptedException: Message: element click intercepted: Element is not clickable at point (203, 530). Other element would receive the click: ... (Session info: chrome=76.0.3809.132)

推薦答案

如果xpath的路徑是對的,或許你可以試試這個方法來解決這個問題.將舊代碼替換為以下代碼:

If the path of the xpath is right, maybe you can try this method to solve this problem. Replace the old code with the following code:

button = driver.find_element_by_xpath("xpath")
driver.execute_script("arguments[0].click();", button)

我以前解決過這個問題,但老實說,我不知道原因.

I solved this problem before, but to be honestly, I don't know the reason.

這篇關于selenium.common.exceptions.ElementClickInterceptedException:消息:元素點擊被攔截:元素不可點擊 Selenium 和 Python的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

How to draw a rectangle around a region of interest in python(如何在python中的感興趣區域周圍繪制一個矩形)
How can I detect and track people using OpenCV?(如何使用 OpenCV 檢測和跟蹤人員?)
How to apply threshold within multiple rectangular bounding boxes in an image?(如何在圖像的多個矩形邊界框中應用閾值?)
How can I download a specific part of Coco Dataset?(如何下載 Coco Dataset 的特定部分?)
Detect image orientation angle based on text direction(根據文本方向檢測圖像方向角度)
Detect centre and angle of rectangles in an image using Opencv(使用 Opencv 檢測圖像中矩形的中心和角度)
主站蜘蛛池模板: 日韩精品色网 | 二区三区在线观看 | 六月成人网| 亚洲欧美在线一区 | h视频在线免费观看 | www.日本国产| 国产三级一区二区三区 | 精品无码久久久久久国产 | 日韩在线一区二区三区 | 国产中文一区二区三区 | 91av导航| 在线毛片网 | 成人九区 | 91原创视频在线观看 | 欧美色综合| 久久久成人一区二区免费影院 | 亚洲男人网 | 欧美一区二区三区视频在线播放 | 综合久 | 888久久久 | 日本精品视频一区二区 | 国产一区二区三区 | 天天操天天摸天天干 | 欧美亚洲国产一区二区三区 | 精品一级| 欧美日韩在线观看一区二区三区 | 国产精品视频免费观看 | 成人免费在线观看 | 极品粉嫩国产48尤物在线播放 | 中文字幕不卡在线观看 | 国产三级精品三级在线观看四季网 | 91影院在线观看 | 日本人和亚洲人zjzjhd | 国产精品7777777 | 久久专区 | 欧美日韩综合 | 伦理片97 | 国产精品精品久久久 | 成人免费在线视频 | a免费视频 | www.狠狠干 |