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

    1. <tfoot id='WycQo'></tfoot>
      <i id='WycQo'><tr id='WycQo'><dt id='WycQo'><q id='WycQo'><span id='WycQo'><b id='WycQo'><form id='WycQo'><ins id='WycQo'></ins><ul id='WycQo'></ul><sub id='WycQo'></sub></form><legend id='WycQo'></legend><bdo id='WycQo'><pre id='WycQo'><center id='WycQo'></center></pre></bdo></b><th id='WycQo'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='WycQo'><tfoot id='WycQo'></tfoot><dl id='WycQo'><fieldset id='WycQo'></fieldset></dl></div>
    2. <legend id='WycQo'><style id='WycQo'><dir id='WycQo'><q id='WycQo'></q></dir></style></legend>

        <small id='WycQo'></small><noframes id='WycQo'>

        • <bdo id='WycQo'></bdo><ul id='WycQo'></ul>

        ElementClickInterceptedException:消息:元素單擊被攔截元

        ElementClickInterceptedException: Message: element click intercepted Element is not clickable error clicking a radio button using Selenium and Python(ElementClickInterceptedException:消息:元素單擊被攔截元素不可點擊錯誤單擊使

          <small id='i9BAj'></small><noframes id='i9BAj'>

        1. <legend id='i9BAj'><style id='i9BAj'><dir id='i9BAj'><q id='i9BAj'></q></dir></style></legend>

              <tbody id='i9BAj'></tbody>
              <i id='i9BAj'><tr id='i9BAj'><dt id='i9BAj'><q id='i9BAj'><span id='i9BAj'><b id='i9BAj'><form id='i9BAj'><ins id='i9BAj'></ins><ul id='i9BAj'></ul><sub id='i9BAj'></sub></form><legend id='i9BAj'></legend><bdo id='i9BAj'><pre id='i9BAj'><center id='i9BAj'></center></pre></bdo></b><th id='i9BAj'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='i9BAj'><tfoot id='i9BAj'></tfoot><dl id='i9BAj'><fieldset id='i9BAj'></fieldset></dl></div>
              <tfoot id='i9BAj'></tfoot>
                <bdo id='i9BAj'></bdo><ul id='i9BAj'></ul>

                  本文介紹了ElementClickInterceptedException:消息:元素單擊被攔截元素不可點擊錯誤單擊使用 Selenium 和 Python 的單選按鈕的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我正在嘗試單擊第一個框(ASN/DSD)

                  I am trying to click on the first box (ASN / DSD)

                  但我收到此錯誤消息:

                  selenium.common.exceptions.ElementClickInterceptedException: Message: element click intercepted: 
                  Element <input type="radio" name="docTypes" ng-model="$ctrl.documentTypes.selected" id="documentType-0" ng-change="$ctrl.onChangeDocumentType()" ng-value="documentType" tabindex="0" class="ng-pristine ng-untouched ng-valid ng-empty" value="[object Object]" aria-invalid="false"> 
                  is not clickable at point (338, 202). 
                  Other element would receive the click:
                   <label translate-attr="{title: 'fulfillment.documentAction.createNew.modal.documentType.document.title'}" translate-values="{documentName: documentType.name}" for="documentType-0" translate="ASN - DSD" tabindex="0" title="Select ASN - DSD document type">...</label>
                    (Session info: chrome=83.0.4103.116)
                  

                  我知道我輸入了正確的 iframe,因為它可以找到元素,而不是點擊它.我的代碼是

                  I know I have entered the right iframe because it can find the element, just not click on it. My code is

                  driver.switch_to.default_content()
                  iframes = driver.find_elements_by_tag_name("iframe")
                  driver.switch_to.frame(iframes[0])
                  time.sleep(5)
                  driver.find_element_by_xpath('//*[@id="documentType-0"]').click()
                  

                  我看到 DebanjanB 在這里回答了類似的問題:鏈接

                  I saw that DebanjanB answered a similar question on here: link

                  我正在嘗試使用執行腳本的第三個解決方案.我不知道該模型使用什么 CSS 選擇器.模型是這樣的

                  I am trying to do his third solution of using execute script. I don't know what CSS selector to use for this model. The model looks like this

                  WebDriverWait(driver, 20).until(EC.invisibility_of_element((By.CSS_SELECTOR, "span.taLnk.ulBlueLinks")))
                  driver.execute_script("arguments[0].click();", WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.XPATH, "//div[@class='loadingWhiteBox']"))))
                  

                  我的問題是我需要在第一行使用什么 css 選擇器,然后它只是我在第二行使用的初始 xpath?

                  My question is what css selector do I need to use on the first line, and then is it just initial xpath I was using on the second line?

                  這是供參考的 HTML.當我嘗試點擊輸入部分時,我收到點擊攔截錯誤.如果使用xpath點擊標簽標簽,它不會出錯但也不會點擊它.它只是移動到下一段代碼而不做任何事情.

                  Here is the HTML for reference. I get the click intercept error when I try to click on the input section. If use xpath to click on the label tag, it does not error out but also does not click on it. It just moves on to the next section of code without doing anything.

                  <li ng-repeat="documentType in selectDocumentType.documentTypes.displayedList |
                  orderBy:selectDocumentType.formOrder"> 
                  
                  <input type="radio" name="docTypes" ng
                  model="selectDocumentType.documentTypes.selected" id="documentType-0" ng-value="documentType"
                  tabindex="0" class="ng-valid ng-not-empty ng-dirty ng-valid-parse ng-touched" value="[object Object]"
                  aria-invalid="false"> 
                  
                  <label translate-attr="{title:'fulfillment.documentAction.createNew.modal.documentType.document.title'}" 
                  translate-values={documentName: documentType.name}" for="documentType-0" translate="ASN - DSD" tabindex="0" title=
                  "Select ASN - DSD document type"><span>ASN - DSD</span></label> </li>
                  

                  關于如何停止點擊被攔截的任何建議?

                  Any suggestions on how to stop having the click intercepted?

                  推薦答案

                  這個錯誤信息...

                  selenium.common.exceptions.ElementClickInterceptedException: Message: element click intercepted: 
                  Element <input type="radio" name="docTypes" ng-model="$ctrl.documentTypes.selected" id="documentType-0" ng-change="$ctrl.onChangeDocumentType()" ng-value="documentType" tabindex="0" class="ng-pristine ng-untouched ng-valid ng-empty" value="[object Object]" aria-invalid="false"> 
                  is not clickable at point (338, 202). 
                  Other element would receive the click:
                   <label translate-attr="{title: 'fulfillment.documentAction.createNew.modal.documentType.document.title'}" translate-values="{documentName: documentType.name}" for="documentType-0" translate="ASN - DSD" tabindex="0" title="Select ASN - DSD document type">...</label>
                  

                  ...暗示所需元素不可點擊,因為某些其他元素會遮擋它.

                  ...implies that the desired element wasn't clickable as some other element obscures it.

                  所需的元素是 Angular 元素,以便在元素上調用 click()您必須為 element_to_be_clickable() 并且您可以使用以下任一定位器策略:

                  The desired element is a Angular element so to invoke click() on the element you have to induce WebDriverWait for the element_to_be_clickable() and you can use either of the following Locator Strategies:

                  • 使用 CSS_SELECTOR:

                  WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.CSS_SELECTOR, "label[for='documentType-0']"))).click()
                  

                • 使用 XPATH:

                  WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.XPATH, "//label[@for='documentType-0']"))).click()
                  

                • 注意:您必須添加以下導入:

                • Note : You have to add the following imports :

                  from selenium.webdriver.support.ui import WebDriverWait
                  from selenium.webdriver.common.by import By
                  from selenium.webdriver.support import expected_conditions as EC
                  

                • 您也可以使用 execute_script() 方法,如下所示:

                  As an alternative you can use the execute_script() method as follows:

                  • 使用 CSS_SELECTOR:

                  driver.execute_script("arguments[0].click();", WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.CSS_SELECTOR, "label[for='documentType-0']"))))
                  

                • 使用 XPATH:

                  driver.execute_script("arguments[0].click();", WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.XPATH, "//label[@for='documentType-0']"))))
                  

                • 您可以在以下位置找到一些相關討論:

                  You can find a couple of relevant discussions in:

                  • 元素MyElement 在 (x, y) 點不可點擊……其他元素會收到點擊
                  • Selenium Web 驅動程序和爪哇.元素在點 (x, y) 處不可點擊.其他元素會收到點擊
                  • ElementClickInterceptedException:消息:元素點擊被攔截:元素不是可通過 Selenium 和 Python 進行點擊

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

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

                  相關文檔推薦

                  Browser waits for ajax call to complete even after abort has been called (jQuery)(即使在調用 abort (jQuery) 之后,瀏覽器也會等待 ajax 調用完成)
                  JavaScript innerHTML is not working for IE?(JavaScript innerHTML 不適用于 IE?)
                  XMLHttpRequest cannot load, No #39;Access-Control-Allow-Origin#39; header is present on the requested resource(XMLHttpRequest 無法加載,請求的資源上不存在“Access-Control-Allow-Origin標頭) - IT屋-程序員軟件開發技術分
                  Is it possible for XHR HEAD requests to not follow redirects (301 302)(XHR HEAD 請求是否有可能不遵循重定向 (301 302))
                  XMLHttpRequest 206 Partial Content(XMLHttpRequest 206 部分內容)
                  Restrictions of XMLHttpRequest#39;s getResponseHeader()?(XMLHttpRequest 的 getResponseHeader() 的限制?)
                • <tfoot id='oJICW'></tfoot>
                    <tbody id='oJICW'></tbody>
                    <legend id='oJICW'><style id='oJICW'><dir id='oJICW'><q id='oJICW'></q></dir></style></legend>

                    <small id='oJICW'></small><noframes id='oJICW'>

                    • <bdo id='oJICW'></bdo><ul id='oJICW'></ul>

                          • <i id='oJICW'><tr id='oJICW'><dt id='oJICW'><q id='oJICW'><span id='oJICW'><b id='oJICW'><form id='oJICW'><ins id='oJICW'></ins><ul id='oJICW'></ul><sub id='oJICW'></sub></form><legend id='oJICW'></legend><bdo id='oJICW'><pre id='oJICW'><center id='oJICW'></center></pre></bdo></b><th id='oJICW'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='oJICW'><tfoot id='oJICW'></tfoot><dl id='oJICW'><fieldset id='oJICW'></fieldset></dl></div>

                          • 主站蜘蛛池模板: 在线观看中文字幕亚洲 | 美国av毛片 | 国产色在线 | www.亚洲.com | 免费亚洲婷婷 | 自拍偷拍亚洲一区 | 久久久久国| 男女羞羞视频在线 | av国产精品毛片一区二区小说 | 日本不卡一区 | 夜夜爽99久久国产综合精品女不卡 | 视频一区二区国产 | 国产亚洲精品久久情网 | 国产精品高潮呻吟久久 | 一区二区三区在线电影 | 午夜影院毛片 | 免费能直接在线观看黄的视频 | 国产在线中文 | 天天综合网永久 | 亚洲免费三级 | 天堂综合| 精品九九 | 欧美一二三 | 五月婷婷在线播放 | 91精品久久 | avav在线看 | av一区二区三区在线观看 | h片在线观看免费 | 色综合天天网 | 欧美一区二区三区在线观看 | 91精品国产综合久久久久久蜜臀 | 国产精品成人一区二区 | 一区二区免费 | 中文字幕亚洲欧美 | a在线视频| 中文精品一区二区 | 高清黄色 | 亚洲一区二区三区四区视频 | 青青99| 99精品免费在线观看 | 午夜免费网站 |