• <small id='A4tjg'></small><noframes id='A4tjg'>

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

  • <legend id='A4tjg'><style id='A4tjg'><dir id='A4tjg'><q id='A4tjg'></q></dir></style></legend>
      <tfoot id='A4tjg'></tfoot>

          <bdo id='A4tjg'></bdo><ul id='A4tjg'></ul>
      1. Selenium WebDriverException:消息:未知错误:无法根据未知错误确定加载状态:缺少或无效的“en

        时间:2023-07-05

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

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

                • <bdo id='ZQpnA'></bdo><ul id='ZQpnA'></ul>
                    <tbody id='ZQpnA'></tbody>
                  <legend id='ZQpnA'><style id='ZQpnA'><dir id='ZQpnA'><q id='ZQpnA'></q></dir></style></legend>
                  <i id='ZQpnA'><tr id='ZQpnA'><dt id='ZQpnA'><q id='ZQpnA'><span id='ZQpnA'><b id='ZQpnA'><form id='ZQpnA'><ins id='ZQpnA'></ins><ul id='ZQpnA'></ul><sub id='ZQpnA'></sub></form><legend id='ZQpnA'></legend><bdo id='ZQpnA'><pre id='ZQpnA'><center id='ZQpnA'></center></pre></bdo></b><th id='ZQpnA'></th></span></q></dt></tr></i><div id='ZQpnA'><tfoot id='ZQpnA'></tfoot><dl id='ZQpnA'><fieldset id='ZQpnA'></fieldset></dl></div>
                  本文介绍了Selenium WebDriverException:消息:未知错误:无法根据未知错误确定加载状态:缺少或无效的“entry.level"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我有一个使用 selenium 进行测试的脚本.现在甚至使用

                  I have a script which uses selenium for testing. Now even opening a Google page using

                  driver.get(url) # url = Google homepage url
                  

                  给我下面的错误

                  driver.get("https://my.gumtree.com/login")
                  File "C:Python34libsite-packagesseleniumwebdriver
                  emotewebdriver.py", line 245, in get
                  self.execute(Command.GET, {'url': url})
                  File "C:Python34libsite-packagesseleniumwebdriver
                  emotewebdriver.py", line 233, in execute
                  self.error_handler.check_response(response)
                  File "C:Python34libsite-packagesseleniumwebdriver
                  emoteerrorhandler.py", line 194, in check_response
                  raise exception_class(message, screen, stacktrace)
                  selenium.common.exceptions.WebDriverException: Message: unknown error: cannot determine loading status
                  from unknown error: missing or invalid 'entry.level'
                  (Session info: chrome=65.0.3315.3)
                  (Driver info: chromedriver=2.29.461591 (62ebf098771772160f391d75e589dc567915b233),platform=Windows NT 10.0.16299 x86_64)
                  

                  我有 Google chrome 版本 65、Chromedriver 2.35 和 selenium 2.53.1

                  I have Google chrome version 65, Chromedriver 2.35 and selenium 2.53.1

                  我根据其他类似问题中提到的解决方案尝试了不同的版本组合(在下表中提到),但没有任何效果.

                  I tried different version combinations(mentioned in below table) as per solutions mentioned in other similar questions but nothing worked.

                  Selenium      Chrome      Chromedriver
                  2.53.0        63           2.33
                  2.53.1        65(latest)   2.34
                  3.6.0                      2.35(latest)
                  3.7.0
                  3.8.0
                  3.8.1(latest)
                  

                  编辑 1:JDK 版本

                  EDIT 1: JDK version

                  java version "1.8.0_151"
                  Java(TM) SE Runtime Environment (build 1.8.0_151-b12)
                  Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode)
                  

                  推荐答案

                  错误说明了一切:

                  selenium.common.exceptions.WebDriverException: Message: unknown error: cannot determine loading status
                  from unknown error: missing or invalid 'entry.level'
                  

                  您的主要问题是您使用的二进制文件之间的版本兼容性,如下所示:

                  Your main issue is the version compatibility among the binaries you are using as follows :

                  • 您正在使用 chromedriver=2.29.461591(根据日志,尽管您在问题中提到了 Chromedriver 2.35)
                  • chromedriver=2.29.461591 明确提及以下内容:
                  • You are using chromedriver=2.29.461591 (which is as per the logs, though you mentioned Chromedriver 2.35 in your question)
                  • Release Notes of chromedriver=2.29.461591 clearly mentions the following :

                  支持 Chrome v56-58

                  • 您正在使用 chrome=65.0.3315.3
                  • chromedriver=2.35的发行说明 明确提及以下内容:
                    • You are using chrome=65.0.3315.3
                    • Release Notes of chromedriver=2.35 clearly mentions the following :
                    • 支持 Chrome v62-64

                      • 您使用的是 Selenium 版本 2.53.1.
                      • 我们不知道您的 JDK 版本.
                        • JDK 升级到最新级别 JDK 版本 8 更新 151.
                        • ChromeDriver 升级到 ChromeDriver v2.35 级别.
                        • Chrome 保持在 Chrome v64.x 级别.(根据 ChromeDriver v2.35 发行说明)
                        • Selenium 升级到当前级别 Version 3.8.1.
                        • 从您的 IDE 中清理 Project Workspace &全部重建.
                        • 运行 CCleaner 工具来清除所有操作系统杂务.
                        • 如果您的 Chrome 基础版本太旧,请通过 Revo Uninstaller 卸载 Chrome 并安装最新的 GA Release 版本的 Chrome.
                        • 进行一次系统重启.
                        • 执行您的测试.
                        • Upgrade JDK to recent levels JDK Version 8 Update 151.
                        • Upgrade ChromeDriver to ChromeDriver v2.35 level.
                        • Keep Chrome to Chrome v64.x levels. (as per ChromeDriver v2.35 release notes)
                        • Upgrade Selenium to current levels Version 3.8.1.
                        • Clean the Project Workspace from your IDE & Rebuild All.
                        • Run CCleaner tool to wipe off all the OS chores.
                        • If your Chrome base version is too old, uninstall Chrome through Revo Uninstaller and install a recent GA Release version of Chrome.
                        • Take a System Reboot.
                        • Execute your Test.

                        这篇关于Selenium WebDriverException:消息:未知错误:无法根据未知错误确定加载状态:缺少或无效的“entry.level"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:使用 XPath 和 Selenium 定位类的特定实例 下一篇:Selenium 不使用默认 Chrome 配置文件

                  相关文章

                    <legend id='7wm61'><style id='7wm61'><dir id='7wm61'><q id='7wm61'></q></dir></style></legend>

                        <bdo id='7wm61'></bdo><ul id='7wm61'></ul>

                      <small id='7wm61'></small><noframes id='7wm61'>

                      <tfoot id='7wm61'></tfoot>

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