<tfoot id='uu0N2'></tfoot>

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

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

        <legend id='uu0N2'><style id='uu0N2'><dir id='uu0N2'><q id='uu0N2'></q></dir></style></legend>
      1. 从 chrome 位置 C:..ChromeApplicationchrome.exe 开始的进程

        时间:2023-10-08
      2. <legend id='UzCbV'><style id='UzCbV'><dir id='UzCbV'><q id='UzCbV'></q></dir></style></legend>

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

          <bdo id='UzCbV'></bdo><ul id='UzCbV'></ul>
                <tbody id='UzCbV'></tbody>
              <tfoot id='UzCbV'></tfoot>

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

                  本文介绍了从 chrome 位置 C:..ChromeApplicationchrome.exe 开始的进程不再运行,因此 ChromeDriver 假设 Chrome 已崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  Chrome 版本:68.0.3440.106
                  Chrome 网络驱动程序版本:ChromeDriver 2.41.578737
                  Python版本:Python 3.5.2

                  Chrome version: 68.0.3440.106
                  Chrome webdriver version: ChromeDriver 2.41.578737
                  Python Version : Python 3.5.2

                  我用python写了这段代码:

                  I write this code in python:

                  from selenium import webdriver
                  from selenium.webdriver.common.keys import Keys
                  
                  
                  o = webdriver.ChromeOptions()
                  o.add_argument("disable-extensions");
                  o.add_argument("--start-maximized");
                  driver = webdriver.Chrome(executable_path=r"chromedriver.exe",options=o)
                  driver.get("http://www.python.org")
                  assert "Python" in driver.title
                  elem = driver.find_element_by_name("q")
                  elem.clear()
                  elem.send_keys("pycon")
                  elem.send_keys(Keys.RETURN)
                  assert "No results found." not in driver.page_source
                  driver.close()
                  

                  几秒钟后,chrome 打开并出现此错误:

                  after few seconds chrome opened with this error:


                  直到我关闭 chrome 并得到这个异常,什么都没有发生:


                  and nothing happend till i close chrome and get this exception:

                      Traceback (most recent call last):
                    File ".../game.py", line 8, in <module>
                      driver = webdriver.Chrome(executable_path=r"chromedriver.exe",options=o)
                    File "...PythonPython35-32libsite-packagesseleniumwebdriverchromewebdriver.py", line 75, in __init__
                      desired_capabilities=desired_capabilities)
                    File "...PythonPython35-32libsite-packagesseleniumwebdriver
                  emotewebdriver.py", line 156, in __init__
                      self.start_session(capabilities, browser_profile)
                    File "...PythonPython35-32libsite-packagesseleniumwebdriver
                  emotewebdriver.py", line 251, in start_session
                      response = self.execute(Command.NEW_SESSION, parameters)
                    File "...PythonPython35-32libsite-packagesseleniumwebdriver
                  emotewebdriver.py", line 320, in execute
                      self.error_handler.check_response(response)
                    File "...PythonPython35-32libsite-packagesseleniumwebdriver
                  emoteerrorhandler.py", line 242, in check_response
                      raise exception_class(message, screen, stacktrace)
                  selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited normally
                    (unknown error: unable to discover open pages)
                    (The process started from chrome location C:Program Files (x86)GoogleChromeApplicationchrome.exe is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
                    (Driver info: chromedriver=2.41.578737 (49da6702b16031c40d63e5618de03a32ff6c197e),platform=Windows NT 10.0.17134 x86_64)
                  

                  推荐答案

                  我最近在使用 TeamCity 时遇到了这个问题,这是由于 chrome(和 chromedriver)在执行我的脚本后没有关闭造成的.插入taskkill/f/im chrome.exe"和taskkill/f/im chromedriver.exe"修复了这个问题.

                  I recently had this issue using TeamCity, which was caused by chrome (and chromedriver) not shutting down after executing my script. inserting "taskkill /f /im chrome.exe" and "taskkill /f /im chromedriver.exe" fixed this issue.

                  这篇关于从 chrome 位置 C:..ChromeApplicationchrome.exe 开始的进程不再运行,因此 ChromeDriver 假设 Chrome 已崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:如何在每个请求上使用 selenium python 轮换各种用户 下一篇:Selenium 不打开指定的 URL 并显示数据:,

                  相关文章

                  最新文章

                      <tfoot id='0P6LH'></tfoot>
                    1. <small id='0P6LH'></small><noframes id='0P6LH'>

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

                        <bdo id='0P6LH'></bdo><ul id='0P6LH'></ul>