<tfoot id='PFGw9'></tfoot>

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

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

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

      1. “站点 url"中发生错误:未捕获的类型错误:无

        时间:2023-10-14
      2. <small id='t3RKn'></small><noframes id='t3RKn'>

      3. <legend id='t3RKn'><style id='t3RKn'><dir id='t3RKn'><q id='t3RKn'></q></dir></style></legend>
          <tbody id='t3RKn'></tbody>

        <tfoot id='t3RKn'></tfoot>
          <bdo id='t3RKn'></bdo><ul id='t3RKn'></ul>

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

                1. 本文介绍了“站点 url"中发生错误:未捕获的类型错误:无法使用 Selenium 和 Python 读取未定义的属性“getColomnSet"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我正在尝试使用 Selenium for Python 和 Chrome 网络驱动程序来自动下载文件.

                  I am trying to use Selenium for Python eith the Chrome webdriver to automate the download of a file.

                  我的程序完美运行到最后一步(点击下载"按钮),此时会触发一个带有文本的对话框:

                  My program works perfectly up to the last step (clicking on the 'download' button) at which point a dialog box is triggered with the text:

                  ‘站点 url’出现错误:未捕获的 TypeError:无法读取 undefined41 的属性‘getColomnSet’"

                  这个错误是什么意思,最可能的原因是什么?

                  What does this error mean and what are the most probable causes?

                  作为参考,这里是我程序的最后几个命令:

                  For reference, here are the last few commands of my program:

                  try:
                      elem = wait.until(EC.presence_of_element_located((By.ID,'element_1_id')))
                  finally:
                      elem1 = driver.find_element_by_id('element_1_id')
                      elem2 = driver.find_element_by_id('element_2_id')
                      action = ActionChains(driver).move_to_element(elem1).move_to_element(elem2)
                      action.perform()
                      elem2.click()
                  

                  推荐答案

                  这个错误信息...

                  An error has occured in 'site url': Uncaught TypeError: Cannot read property 'getColomnSet' of undefined
                  

                  ...暗示您的程序在尝试下载所需文件时无法读取属性getColomnSet.

                  ...implies that your program was unable to read the property getColomnSet while trying to download the desired file.

                  可能,主要问题是在客户端呈现 js" rel="nofollow noreferrer">HTML DOM 完全.

                  Possibly, the main problem is the js involved to download the document is invoked before the client renders the HTML DOM completely.

                  相关的HTML、更多的之前的代码行错误堆栈跟踪会让我们对怎么了.

                  The relevant HTML, a bit more of your previous lines of code and the error stack trace would have given us some more idea about what's going wrong.

                  • 您可以诱导一些措施等到完成 DOM 树在讨论之后呈现:
                    • 检查页面是否已在 Selenium 中完全加载的通用函数
                    • 在您的代码试验中,我没有看到您与元素 (By.ID,'element_1_id') 交互,因此您可能可以删除 presence_of_element_located() 的步骤 对于元素 (By.ID,'element_1_id').
                    • 如果您仍然需要 presence_of_element_located((By.ID,'element_1_id')) 捕获异常并启动所需步骤.
                    • 当您在 elem1elem2 上调用 move_to_element() 并继续调用 perform() 时,您需要用 WebDriverWait.webdriver.support.expected_conditions" rel="nofollow noreferrer">expected_conditions 作为 element_to_be_clickable(locator)
                    • In your code trials I don't see you interacting with the element (By.ID,'element_1_id') so possibly you can remove the step of presence_of_element_located() for the element (By.ID,'element_1_id').
                    • If you still require presence_of_element_located((By.ID,'element_1_id')) catch the exception and initiate required steps.
                    • As you invoke move_to_element() over elem1 and elem2 and moving ahead invoke perform() you need to induce WebDriverWait with expected_conditions as element_to_be_clickable(locator)
                    • 无法使用画布读取 null 的属性getContext"
                    • 未捕获的类型错误:无法读取未定义的属性getContext"
                    • 未捕获的错误 remote.js

                    这篇关于“站点 url"中发生错误:未捕获的类型错误:无法使用 Selenium 和 Python 读取未定义的属性“getColomnSet"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:如何通过 dockerfile 在 ENTRYPOINT 之前执行 shell 命令 下一篇:ElementClickInterceptedException:消息:元素单击被拦截元

                  相关文章

                  最新文章

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

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

                  1. <small id='qQ6XW'></small><noframes id='qQ6XW'>

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