<tfoot id='SoRm9'></tfoot>

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

        <i id='SoRm9'><tr id='SoRm9'><dt id='SoRm9'><q id='SoRm9'><span id='SoRm9'><b id='SoRm9'><form id='SoRm9'><ins id='SoRm9'></ins><ul id='SoRm9'></ul><sub id='SoRm9'></sub></form><legend id='SoRm9'></legend><bdo id='SoRm9'><pre id='SoRm9'><center id='SoRm9'></center></pre></bdo></b><th id='SoRm9'></th></span></q></dt></tr></i><div id='SoRm9'><tfoot id='SoRm9'></tfoot><dl id='SoRm9'><fieldset id='SoRm9'></fieldset></dl></div>
          <bdo id='SoRm9'></bdo><ul id='SoRm9'></ul>
        <legend id='SoRm9'><style id='SoRm9'><dir id='SoRm9'><q id='SoRm9'></q></dir></style></legend>

        selenium.common.exceptions.ElementNotVisibleException:消息:元

        时间:2023-10-08
          <legend id='8I2Q6'><style id='8I2Q6'><dir id='8I2Q6'><q id='8I2Q6'></q></dir></style></legend>

              <tfoot id='8I2Q6'></tfoot>
                <bdo id='8I2Q6'></bdo><ul id='8I2Q6'></ul>
                <i id='8I2Q6'><tr id='8I2Q6'><dt id='8I2Q6'><q id='8I2Q6'><span id='8I2Q6'><b id='8I2Q6'><form id='8I2Q6'><ins id='8I2Q6'></ins><ul id='8I2Q6'></ul><sub id='8I2Q6'></sub></form><legend id='8I2Q6'></legend><bdo id='8I2Q6'><pre id='8I2Q6'><center id='8I2Q6'></center></pre></bdo></b><th id='8I2Q6'></th></span></q></dt></tr></i><div id='8I2Q6'><tfoot id='8I2Q6'></tfoot><dl id='8I2Q6'><fieldset id='8I2Q6'></fieldset></dl></div>

                  <tbody id='8I2Q6'></tbody>

                <small id='8I2Q6'></small><noframes id='8I2Q6'>

                • 本文介绍了selenium.common.exceptions.ElementNotVisibleException:消息:元素无法使用 Selenium 进行交互的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我正在寻找一个有趣的程序,但我对 selenium 有一些问题,我需要一些帮助...这是程序(我删除了webdriver的目录,因为文件夹的名称包含其他人的名字)

                  I am searching to do a program for fun but i have some problems with selenium and i need some help... This is the programm (i deleted the directory of webdriver because the folder's name contain the name of an other person)

                  from selenium import webdriver
                  import webbrowser
                  import time
                  
                  
                  def Pass_send_():
                      driver=webdriver.Chrome()
                      driver.get('chrome://flags/#password_export-enable')
                  
                  
                      ricerca=driver.find_element_by_id("search")
                      ricerca.send_keys('password export')
                      scorritore=driver.find_element_by_class_name('experiment-select')
                      scorritore.click()
                  
                  
                  
                  Pass_send_()
                  

                  所以它的目的很简单,它应该打开一个窗口,输入一个文本并单击一个按钮.一切正常,但点击没有,这是错误:

                  And so the purpose it's easy, it should open a windows, type a text and click a button. everything works but the click doesn't and this is the error:

                  Traceback (most recent call last):
                        File "C:Python34internet22.py", line 18, in <module>
                  Pass_send_()
                    File "C:Python34internet22.py", line 14, in Pass_send_
                  scorritore.click()
                    File "C:Python34libsite- 
                     packagesseleniumwebdriver
                  emotewebelement.py", line 80, in click
                      self._execute(Command.CLICK_ELEMENT)
                    File "C:Python34libsite- 
                  packagesseleniumwebdriver
                  emotewebelement.py", line 633, in _execute
                      return self._parent.execute(command, params)
                    File "C:Python34libsite- 
                  packagesseleniumwebdriver
                  emotewebdriver.py", line 321, in execute
                      self.error_handler.check_response(response)
                    File "C:Python34libsite- 
                  packagesseleniumwebdriver
                  emoteerrorhandler.py", line 242, in 
                  check_response
                      raise exception_class(message, screen, stacktrace)
                  selenium.common.exceptions.ElementNotVisibleException: Message: element not interactable
                  

                  所以我不是专家,但它说:元素不可交互?这是什么意思,我该如何解决?非常感谢您的回复...

                  So i am not an expert but it says: element not intercatable? what does it mean and how can i fix it? i would really appreciate a reply...

                  推荐答案

                  发送一个字符序列到网页中的搜索框 chrome://flags/#password_export-enable 需要诱导WebDriverWait,可以使用如下解决方案:

                  To send a character sequence to the search box within the webpage chrome://flags/#password_export-enable you need to induce WebDriverWait and you can use the following solution:

                  • 代码块:

                  • Code Block:

                  from selenium import webdriver
                  from selenium.webdriver.chrome.options import Options
                  from selenium.webdriver.support.ui import WebDriverWait
                  from selenium.webdriver.common.by import By
                  from selenium.webdriver.support import expected_conditions as EC
                  
                  options = Options()
                  options.add_argument('start-maximized')
                  options.add_argument('disable-infobars')
                  options.add_argument('--disable-extensions')
                  driver = webdriver.Chrome(chrome_options=options, executable_path=r'C:WebDriverschromedriver.exe')
                  driver.get('chrome://flags/#password_export-enable')
                  WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.CSS_SELECTOR, "input#search"))).send_keys("password export")
                  

                • 浏览器快照:

                • Browser Snapshot:

                  这篇关于selenium.common.exceptions.ElementNotVisibleException:消息:元素无法使用 Selenium 进行交互的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                • 上一篇:如何摆脱信息栏“Chrome 正在被自动化测试软件控 下一篇:在 python 中隐藏 chromeDriver 控制台

                  相关文章

                  最新文章

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

                • <tfoot id='hzoKT'></tfoot>

                  1. <i id='hzoKT'><tr id='hzoKT'><dt id='hzoKT'><q id='hzoKT'><span id='hzoKT'><b id='hzoKT'><form id='hzoKT'><ins id='hzoKT'></ins><ul id='hzoKT'></ul><sub id='hzoKT'></sub></form><legend id='hzoKT'></legend><bdo id='hzoKT'><pre id='hzoKT'><center id='hzoKT'></center></pre></bdo></b><th id='hzoKT'></th></span></q></dt></tr></i><div id='hzoKT'><tfoot id='hzoKT'></tfoot><dl id='hzoKT'><fieldset id='hzoKT'></fieldset></dl></div>

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

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