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

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

          <bdo id='KBE3H'></bdo><ul id='KBE3H'></ul>

        <legend id='KBE3H'><style id='KBE3H'><dir id='KBE3H'><q id='KBE3H'></q></dir></style></legend>

        如何解決此問(wèn)題元素不可交互的 Selenium Python

        How to fix this issue element not interactable Selenium Python(如何解決此問(wèn)題元素不可交互的 Selenium Python)

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

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

                  本文介紹了如何解決此問(wèn)題元素不可交互的 Selenium Python的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                  問(wèn)題描述

                  我的腳本代碼中有以下行,我從 Selenium IDE 獲得的 XPath 工作正常:

                  I have the following line in my script code, where the XPath I got it from Selenium IDE that works fine:

                  driver.find_element_by_xpath("(//a[contains(@href, '')])[20]").click()
                  

                  自動(dòng)化測(cè)試在此處停止并出現(xiàn)此錯(cuò)誤:

                  An automation test stops here with this error:

                  Traceback (most recent call last):
                  File "Script.py", line 65, in <module>
                      driver.find_element_by_xpath("http://a[contains(@href, '')])[20]").click()
                  File "/usr/lib/python2.7/site-packages/selenium/webdriver/remote/webelement.py", line 80, in click
                      self._execute(Command.CLICK_ELEMENT)
                  File "/usr/lib/python2.7/site-packages/selenium/webdriver/remote/webelement.py", line 633, in _execute
                      return self._parent.execute(command, params)
                  File "/usr/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
                      self.error_handler.check_response(response)
                  File "/usr/lib/python2.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
                      raise exception_class(message, screen, stacktrace)
                  selenium.common.exceptions.ElementNotVisibleException: Message: element not interactable
                  (Session info: chrome=74.0.3729.131)
                  (Driver info: chromedriver=74.0.3729.6 (255758eccf3d244491b8a1317aa76e1ce10d57e9-refs/branch-heads/3729@{#29}),platform=Windows NT 6.1.7601 SP1 x86_64)
                  

                  如何解決這個(gè)問(wèn)題?

                  感謝您的幫助.

                  推薦答案

                  既然你只是想抓取數(shù)據(jù),我推薦你使用這個(gè)方案:

                  Seeing as you just want to scrape the data, I recommend you use this solution:

                  element = driver.find_element_by_xpath("(//a[contains(@href, '')])[20]")
                  driver.execute_script("arguments[0].click();", element)
                  

                  通過(guò) Javascript 點(diǎn)擊元素,而不是 selenium 使用的自然"點(diǎn)擊(試圖模擬用戶(hù)體驗(yàn)).

                  Which clicks the element via Javascript as opposed to a "natural" click that selenium uses (to try to simulate the user experience).

                  我在這里回答了一個(gè)類(lèi)似的問(wèn)題,該問(wèn)題也鏈接到另一個(gè)帖子.

                  I answered a similar question here that links to another post on it as well.

                  這篇關(guān)于如何解決此問(wèn)題元素不可交互的 Selenium Python的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關(guān)文檔推薦

                  How to make a discord bot that gives roles in Python?(如何制作一個(gè)在 Python 中提供角色的不和諧機(jī)器人?)
                  Discord bot isn#39;t responding to commands(Discord 機(jī)器人沒(méi)有響應(yīng)命令)
                  Can you Get the quot;About mequot; feature on Discord bot#39;s? (Discord.py)(你能得到“關(guān)于我嗎?Discord 機(jī)器人的功能?(不和諧.py))
                  message.channel.id Discord PY(message.channel.id Discord PY)
                  How do I host my discord.py bot on heroku?(如何在 heroku 上托管我的 discord.py 機(jī)器人?)
                  discord.py - Automaticaly Change an Role Color(discord.py - 自動(dòng)更改角色顏色)
                  • <tfoot id='lePUJ'></tfoot>

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

                        • <bdo id='lePUJ'></bdo><ul id='lePUJ'></ul>
                            <legend id='lePUJ'><style id='lePUJ'><dir id='lePUJ'><q id='lePUJ'></q></dir></style></legend>
                              <tbody id='lePUJ'></tbody>
                            主站蜘蛛池模板: 在线看中文字幕 | 亚洲免费在线 | 国产精品美女久久久久久免费 | 欧美激情亚洲激情 | 黄色毛片在线观看 | 99re视频在线 | 91精品久久久久久久久久入口 | 99精品欧美一区二区蜜桃免费 | 在线观看免费国产 | 久久丝袜视频 | 欧美中文字幕在线 | 亚洲色欲色欲www | 玖玖玖在线 | 色婷婷国产精品综合在线观看 | 99久久婷婷国产综合精品电影 | 精品一区二区三区91 | 亚洲精品一二三区 | 国产97色 | 九九亚洲 | 久久久蜜桃一区二区人 | 亚洲国产一区视频 | 国产精品九九九 | 九九精品在线 | 免费观看黄a一级视频 | 欧美a在线 | 精品国产黄色片 | 在线免费观看黄a | av在线一区二区三区 | www.一区二区三区.com | 日韩av在线不卡 | 伊人精品国产 | 欧美激情一区二区三区 | 一级毛片成人免费看a | 亚洲欧美日本在线 | 成年人在线观看 | 逼逼网| 午夜影晥 | caoporn视频| 成人av鲁丝片一区二区小说 | 国产一区二区精品自拍 | 久久久久久久久久久久久九 |