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

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

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

        WebDriverException:消息:长时间无法访问 chrome

        时间:2023-10-08
        <legend id='Vl0fP'><style id='Vl0fP'><dir id='Vl0fP'><q id='Vl0fP'></q></dir></style></legend>
        1. <i id='Vl0fP'><tr id='Vl0fP'><dt id='Vl0fP'><q id='Vl0fP'><span id='Vl0fP'><b id='Vl0fP'><form id='Vl0fP'><ins id='Vl0fP'></ins><ul id='Vl0fP'></ul><sub id='Vl0fP'></sub></form><legend id='Vl0fP'></legend><bdo id='Vl0fP'><pre id='Vl0fP'><center id='Vl0fP'></center></pre></bdo></b><th id='Vl0fP'></th></span></q></dt></tr></i><div id='Vl0fP'><tfoot id='Vl0fP'></tfoot><dl id='Vl0fP'><fieldset id='Vl0fP'></fieldset></dl></div>
            <tbody id='Vl0fP'></tbody>
            • <tfoot id='Vl0fP'></tfoot>

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

                • <bdo id='Vl0fP'></bdo><ul id='Vl0fP'></ul>
                  本文介绍了WebDriverException:消息:长时间无法访问 chrome的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  这是代码:

                  driver = webdriver.Chrome()
                  while True:
                     #do thing that require hours
                     #then i use selenium once
                  driver.get(link)
                  

                  我需要先打开 selenium,然后制作需要数小时的东西,因为当我打开 selenium 时,我需要做好准备并加快速度.如果将 driver = webdriver.Chrome() 放在 while 下面,它会减慢一切我不知道它是否相关,但我使用 nohup 命令运行此代码.

                  I need to open first selenium and then make things that require hours because when i open selenium i need to be ready and speed. If put driver = webdriver.Chrome() below the while, it would slow everything down i don't know if it is relevant but i run this code with nohup command.

                  追溯:

                  Traceback (most recent call last):
                    File "Scraper.py", line 84, in <module>
                      main()
                    File "Scraper.py", line 74, in main
                      waitForSomething()
                    File "Scraper.py", line 54, in waitForSomething
                      fillForm(str(link)[2:-2])
                    File "Scraper.py", line 30, in fillForm
                      driver.get(link)
                    File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 333, in get
                      self.execute(Command.GET, {'url': url})
                    File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
                      self.error_handler.check_response(response)
                    File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_resp$
                      raise exception_class(message, screen, stacktrace)
                  selenium.common.exceptions.WebDriverException: Message: chrome not reachable
                    (Session info: chrome=192.168.0.0)
                    (Driver info: chromedriver=2.36.540471 (9c759b81a907e70363c6312294d30b6ccccc2752),platform=Linux 4.9.0-9-amd64 x$
                  

                  推荐答案

                  最初我问自己的问题与@GregBurghardt 在评论中提出的问题相同,直到我分析了详细的错误堆栈跟踪.

                  Initially I had asked myself the same questions as @GregBurghardt had been asking in the comments till I analyzed the detailed error stack trace.

                  是的,在标记为 #do thing that require hours 的那些步骤中发生了令人惊奇的事情.因此,没有将 Chrome 浏览器版本显示为 chrome=76.0chrome=75.0> 或 chrome=74.0 它显示:

                  Yes, there is somehting amazing happening in those steps marked as #do thing that require hours. Hence, instaed of showing Chrome browser version as chrome=76.0, chrome=75.0 or chrome=74.0 it shows:

                  (Session info: chrome=192.168.0.0)
                  

                  这非常令人惊讶.

                  除非您向我们更新为什么以及如何将 Chrome 版本更改为这样的值,否则几乎不可能分析问题.

                  It would be almost impossible to analyze the issue until and unless you update us why and how the Chrome version gets changed to such value.

                  话虽如此,您的主要问题可能是您使用的二进制文件版本之间的不兼容.

                  Having said that, possibly your main issue is the incompatibility between the version of the binaries you are using.

                  • 您正在使用 chromedriver=2.36
                  • chromedriver=2.36 的发行说明明确提及以下内容:

                  支持 Chrome v63-65

                  • 大概你使用的是最新的chrome= 76.0
                  • ChromeDriver v76.0的发行说明/a> 明确提及以下内容:
                    • Presumably you are using the latest chrome= 76.0
                    • Release Notes of ChromeDriver v76.0 clearly mentions the following :
                    • 支持Chrome 76版

                      • 我们不知道您的 Selenium 客户端 版本.
                      • 所以 ChromeDriver v2.36Chrome 浏览器 v76.0

                        确保:

                        • Selenium 已升级到当前级别版本 3.141.59.
                        • ChromeDriver 已更新为当前 ChromeDriver v76.0 级别.
                        • Chrome 已更新至当前 Chrome 版本 76.0 级别.(根据 ChromeDriver v76.0 发行说明)
                        • 清理你的项目工作区通过你的IDE重建你的项目只需要依赖.
                        • 如果您的基本 Web 客户端 版本太旧,请卸载它并安装最新的 GA 和发布版本的 Web 客户端.
                        • 进行一次系统重启.
                        • 非 root 用户身份执行您的 @Test.
                        • 总是在 tearDown(){} 方法中调用 driver.quit() 来关闭 &优雅地销毁 WebDriverWeb Client 实例.
                        • Selenium is upgraded to current levels Version 3.141.59.
                        • ChromeDriver is updated to current ChromeDriver v76.0 level.
                        • Chrome is updated to current Chrome Version 76.0 level. (as per ChromeDriver v76.0 release notes)
                        • Clean your Project Workspace through your IDE and Rebuild your project with required dependencies only.
                        • If your base Web Client version is too old, then uninstall it and install a recent GA and released version of Web Client.
                        • Take a System Reboot.
                        • Execute your @Test as non-root user.
                        • Always invoke driver.quit() within tearDown(){} method to close & destroy the WebDriver and Web Client instances gracefully.
                        • Python selenium WebDriverException: chrome 无法访问打开 ChromeDriver 时
                        • selenium.common.exceptions.WebDriverException:消息:将 find_element_by_id Selenium 与 ChromeDriver 一起使用时出现 chrome 无法访问错误
                        • org.openqa.selenium.WebDriverException: chrome 无法访问 - 尝试启动新会话时

                        这篇关于WebDriverException:消息:长时间无法访问 chrome的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:无法使用 Selenium 将文本发送到 Microsoft 登录页面 下一篇:消息:未知错误:Chrome 无法启动:在使用 Linux 4.9.8

                  相关文章

                  最新文章

                  <tfoot id='NXpg4'></tfoot>
                • <small id='NXpg4'></small><noframes id='NXpg4'>

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