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

    1. <legend id='DxVqq'><style id='DxVqq'><dir id='DxVqq'><q id='DxVqq'></q></dir></style></legend>

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

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

      1. Selenium:WebDriverException:Chrome 无法启动:由于 google-chrome 不再运

        Selenium: WebDriverException:Chrome failed to start: crashed as google-chrome is no longer running so ChromeDriver is assuming that Chrome has crashed(Selenium:WebDriverException:Chrome 无法启动:由于 google-chrome 不再运行而崩溃,因此 Chrom
          <tbody id='v0p0k'></tbody>
          <bdo id='v0p0k'></bdo><ul id='v0p0k'></ul>

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

            <legend id='v0p0k'><style id='v0p0k'><dir id='v0p0k'><q id='v0p0k'></q></dir></style></legend>
              <tfoot id='v0p0k'></tfoot>
              <i id='v0p0k'><tr id='v0p0k'><dt id='v0p0k'><q id='v0p0k'><span id='v0p0k'><b id='v0p0k'><form id='v0p0k'><ins id='v0p0k'></ins><ul id='v0p0k'></ul><sub id='v0p0k'></sub></form><legend id='v0p0k'></legend><bdo id='v0p0k'><pre id='v0p0k'><center id='v0p0k'></center></pre></bdo></b><th id='v0p0k'></th></span></q></dt></tr></i><div id='v0p0k'><tfoot id='v0p0k'></tfoot><dl id='v0p0k'><fieldset id='v0p0k'></fieldset></dl></div>
                • 本文介绍了Selenium:WebDriverException:Chrome 无法启动:由于 google-chrome 不再运行而崩溃,因此 ChromeDriver 假设 Chrome 已崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  最近我换了电脑,从那以后我就不能用 selenium 启动 chrome.我也尝试过 Firefox,但浏览器实例无法启动.

                  Recently I switched computers and since then I can't launch chrome with selenium. I've also tried Firefox but the browser instance just doesn't launch.

                  from selenium import webdriver
                  
                  d = webdriver.Chrome('/home/PycharmProjects/chromedriver')
                  
                  d.get('https://www.google.nl/')
                  

                  我收到以下错误:

                  selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: crashed
                    (unknown error: DevToolsActivePort file doesn't exist)
                    (The process started from chrome location /opt/google/chrome/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
                    (Driver info: chromedriver=2.43.600233, platform=Linux 4.15.0-38-generic x86_64)
                  

                  我安装了最新的 chrome 版本和 chromedriver

                  i have the latest chrome version and chromedriver installed

                  尝试@b0sss 解决方案后,我收到以下错误.

                  After trying @b0sss solution i am getting the following error.

                  selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: crashed
                    (chrome not reachable)
                    (The process started from chrome location /opt/google/chrome/google-chrome is no longer running, so chromedriver is assuming that Chrome has crashed.)
                    (Driver info: chromedriver=2.43.600233 (523efee95e3d68b8719b3a1c83051aa63aa6b10d),platform=Linux 4.15.0-38-generic x86_64)
                  

                  推荐答案

                  尝试在这里下载并使用这个最新的 chrome 驱动程序版本.

                  Try to download HERE and use this latest chrome driver version.

                  https://sites.google.com/a/chromium.org/chromedriver/下载

                  试试这个:

                  from selenium import webdriver
                  from selenium.webdriver.chrome.options import Options
                  
                  chrome_options = Options()
                  chrome_options.add_argument('--headless')
                  chrome_options.add_argument('--no-sandbox')
                  chrome_options.add_argument('--disable-dev-shm-usage')
                  d = webdriver.Chrome('/home/PycharmProjects/chromedriver',chrome_options=chrome_options)
                  d.get('https://www.google.nl/')
                  

                  这篇关于Selenium:WebDriverException:Chrome 无法启动:由于 google-chrome 不再运行而崩溃,因此 ChromeDriver 假设 Chrome 已崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Kivy 1.9.0 Windows package KeyError: #39;rthooks#39;(Kivy 1.9.0 Windows 包 KeyError: rthooks)
                  Python Kivy: how to call a function on button click?(Python Kivy:如何在按钮单击时调用函数?)
                  How to disable a widget in Kivy?(如何禁用 Kivy 中的小部件?)
                  Centering an object in Kivy(在 Kivy 中将对象居中)
                  How to downgrade to Python 3.4 from 3.5(如何从 Python 3.5 降级到 Python 3.4)
                  Change button or label text color in kivy(在kivy中更改按钮或标签文本颜色)
                  <legend id='1eXEe'><style id='1eXEe'><dir id='1eXEe'><q id='1eXEe'></q></dir></style></legend><tfoot id='1eXEe'></tfoot>

                      <bdo id='1eXEe'></bdo><ul id='1eXEe'></ul>
                      1. <small id='1eXEe'></small><noframes id='1eXEe'>

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