久久久久久久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 檢測圖像中矩形的中心和角度)
主站蜘蛛池模板: 国产福利在线视频 | 欧美在线精品一区 | 国产精品毛片一区二区在线看 | 精品久久久久久 | 中文字幕日韩一区 | 国产精品美女www爽爽爽视频 | 日本高清中文字幕 | 尤物视频在线免费观看 | www.亚洲一区二区 | 久久aⅴ乱码一区二区三区 91综合网 | 九九九久久国产免费 | 欧美国产中文 | 国产二区精品视频 | 中文字幕av亚洲精品一部二部 | 99爱在线免费观看 | wwwxx在线观看| 日韩精品在线一区 | 国产精品欧美一区二区三区不卡 | 亚洲成人免费av | 中文字幕av第一页 | 四虎永久在线精品免费一区二 | 亚洲一区视频在线 | 成人在线免费 | 日本黄色不卡视频 | 精品一区二区三区在线视频 | 国产日韩一区二区三区 | 在线免费看毛片 | 成人在线视频免费看 | 午夜小视频在线播放 | 四虎影院久久 | 99精品国产一区二区三区 | 国产成人精品一区二三区在线观看 | 黄视频在线网站 | 91精品国产日韩91久久久久久 | 欧美成人一区二区三区片免费 | 日韩精品视频在线观看一区二区三区 | 日韩中文字幕区 | 中文字幕在线播放不卡 | 高清一区二区 | 亚洲精品免费在线观看 | 日韩欧美国产精品 |