久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

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

    • <bdo id='FPumN'></bdo><ul id='FPumN'></ul>
    <legend id='FPumN'><style id='FPumN'><dir id='FPumN'><q id='FPumN'></q></dir></style></legend>

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

    1. selenium.common.exceptions.WebDriverException:消息:未知錯誤

      selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: crashed with ChromeDriver and Selenium in Python(selenium.common.exceptions.WebDriverException:消息:未知錯誤:Chrome 無法啟動:在 Python 中

        <legend id='Ka0v9'><style id='Ka0v9'><dir id='Ka0v9'><q id='Ka0v9'></q></dir></style></legend>
          <tbody id='Ka0v9'></tbody>

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

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

              1. 本文介紹了selenium.common.exceptions.WebDriverException:消息:未知錯誤:Chrome 無法啟動:在 Python 中使用 ChromeDriver 和 Selenium 崩潰的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                這是我的代碼腳本:

                從 selenium 導入 webdriver選項 = webdriver.ChromeOptions()options.add_argument("user-data-dir=C:\Users\hadi\AppData\Local\Google\Chrome\User Data") #您的 chrome 配置文件的路徑w = webdriver.Chrome(executable_path="E:Pythonchromedriver.exe", chrome_options=options)w.get("https://www.facebook.com")

                在運行此腳本時出現此錯誤:

                Traceback(最近一次調用最后一次):<module> 中的文件E:/Python/MoosaBhai/TestoTes.py",第 6 行w = webdriver.Chrome(executable_path="E:\Python\chromedriver.exe", chrome_options=options)__init__ 中的文件C:UsershadiAppDataLocalProgramsPythonPython36-32libsite-packagesseleniumwebdriverchromewebdriver.py",第 75 行期望的能力=期望的能力)文件C:UsershadiAppDataLocalProgramsPythonPython36-32libsite-packagesseleniumwebdriver
                emotewebdriver.py",第 154 行,在 __init__self.start_session(desired_capabilities, browser_profile)文件C:UsershadiAppDataLocalProgramsPythonPython36-32libsite-packagesseleniumwebdriver
                emotewebdriver.py",第 243 行,在 start_session響應 = self.execute(Command.NEW_SESSION,參數)文件C:UsershadiAppDataLocalProgramsPythonPython36-32libsite-packagesseleniumwebdriver
                emotewebdriver.py",第 312 行,在執行中self.error_handler.check_response(響應)文件C:UsershadiAppDataLocalProgramsPythonPython36-32libsite-packagesseleniumwebdriver
                emoteerrorhandler.py",第 242 行,在 check_response引發異常類(消息、屏幕、堆棧跟蹤)selenium.common.exceptions.WebDriverException:消息:未知錯誤:Chrome 無法啟動:崩潰(驅動程序信息:chromedriver=2.38.552522 (437e6fbedfa8762dec75e2c5b3ddb86763dc9dcb),平臺=Windows NT 10.0.17134 x86_64)

                我已經編輯了 chromedriver 的可執行路徑,但是當我運行腳本時,我的 chrome 驅動程序會打開,但之后會卡住 2-3 分鐘,然后因上述以下錯誤而崩潰.

                解決方案

                拇指規則

                <塊引用>

                Chrome 在啟動過程中崩潰的一個常見原因是作為 root 用戶(administrator 運行 Chrome>) 在 Linux 上.雖然可以通過在創建 WebDriver 會話時傳遞 --no-sandbox 標志來解決此問題,但這種配置不受支持且不鼓勵使用.您需要將環境配置為以普通用戶身份運行 Chrome.


                根據您的代碼試驗,您似乎正在嘗試訪問 Chrome 配置文件,因此您可以使用以下解決方案:

                • 代碼塊:

                  從 selenium 導入 webdriver從 selenium.webdriver.chrome.options 導入選項選項=選項()options.add_argument("user-data-dir=C:\path\to\your\profile\Google\Chrome\User Data\Profile 2")driver = webdriver.Chrome(executable_path=r'C:path	ochromedriver.exe', chrome_options=options)driver.get("https://www.google.co.in")

                • 您可以在此處找到詳細討論 如何通過 Python 打開 Chrome 配置文件

                This is my code script:

                from selenium import webdriver
                
                options = webdriver.ChromeOptions()
                options.add_argument("user-data-dir=C:\Users\hadi\AppData\Local\Google\Chrome\User Data") #Path to your chrome profile
                w = webdriver.Chrome(executable_path="E:Pythonchromedriver.exe", chrome_options=options)
                w.get("https://www.facebook.com")
                

                and on running this script i'm getting this error:

                Traceback (most recent call last):
                  File "E:/Python/MoosaBhai/TestoTes.py", line 6, in <module>
                    w = webdriver.Chrome(executable_path="E:\Python\chromedriver.exe", chrome_options=options)
                  File "C:UsershadiAppDataLocalProgramsPythonPython36-32libsite-packagesseleniumwebdriverchromewebdriver.py", line 75, in __init__
                    desired_capabilities=desired_capabilities)
                  File "C:UsershadiAppDataLocalProgramsPythonPython36-32libsite-packagesseleniumwebdriver
                emotewebdriver.py", line 154, in __init__
                    self.start_session(desired_capabilities, browser_profile)
                  File "C:UsershadiAppDataLocalProgramsPythonPython36-32libsite-packagesseleniumwebdriver
                emotewebdriver.py", line 243, in start_session
                    response = self.execute(Command.NEW_SESSION, parameters)
                  File "C:UsershadiAppDataLocalProgramsPythonPython36-32libsite-packagesseleniumwebdriver
                emotewebdriver.py", line 312, in execute
                    self.error_handler.check_response(response)
                  File "C:UsershadiAppDataLocalProgramsPythonPython36-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: crashed
                  (Driver info: chromedriver=2.38.552522 (437e6fbedfa8762dec75e2c5b3ddb86763dc9dcb),platform=Windows NT 10.0.17134 x86_64)
                

                I've edited my executeable path to chromedriver but when i run the script my chrome driver opens but after that stuck for 2-3minutes and then crashes with the above following error.

                解決方案

                Thumb rule

                A common cause for Chrome to crash during startup is running Chrome as root user (administrator) on Linux. While it is possible to work around this issue by passing --no-sandbox flag when creating your WebDriver session, such a configuration is unsupported and highly discouraged. You need to configure your environment to run Chrome as a regular user instead.


                As per your code trials seems you are trying to access a Chrome Profile so you can use the following solution:

                • Code Block:

                  from selenium import webdriver
                  from selenium.webdriver.chrome.options import Options
                  
                  options = Options()
                  options.add_argument("user-data-dir=C:\path\to\your\profile\Google\Chrome\User Data\Profile 2")
                  driver = webdriver.Chrome(executable_path=r'C:path	ochromedriver.exe', chrome_options=options)
                  driver.get("https://www.google.co.in")
                  

                • Here you can find a detailed discussion in How to open a Chrome Profile through Python

                這篇關于selenium.common.exceptions.WebDriverException:消息:未知錯誤:Chrome 無法啟動:在 Python 中使用 ChromeDriver 和 Selenium 崩潰的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                相關文檔推薦

                How to make a discord bot that gives roles in Python?(如何制作一個在 Python 中提供角色的不和諧機器人?)
                Discord bot isn#39;t responding to commands(Discord 機器人沒有響應命令)
                Can you Get the quot;About mequot; feature on Discord bot#39;s? (Discord.py)(你能得到“關于我嗎?Discord 機器人的功能?(不和諧.py))
                message.channel.id Discord PY(message.channel.id Discord PY)
                How do I host my discord.py bot on heroku?(如何在 heroku 上托管我的 discord.py 機器人?)
                discord.py - Automaticaly Change an Role Color(discord.py - 自動更改角色顏色)
                    <tbody id='I5lPb'></tbody>

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

                    <tfoot id='I5lPb'></tfoot>

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

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

                        • <legend id='I5lPb'><style id='I5lPb'><dir id='I5lPb'><q id='I5lPb'></q></dir></style></legend>
                          主站蜘蛛池模板: 久久久国产精品网站 | 国产一级视屏 | 一级欧美| 欧美日韩国产在线观看 | 欧美一区二区大片 | 成人看片在线观看 | 精品一区二区在线观看 | 欧美日韩亚洲一区 | 成人国产在线视频 | 亚洲免费在线观看 | 亚洲视频一区在线 | 久久久久国产一区二区三区四区 | 在线免费观看黄色 | 亚洲网一区 | 久优草| 午夜码电影 | 国产精品无码久久久久 | 日韩在线观看一区 | 国产精品久久久久久影院8一贰佰 | www.亚洲| 亚洲性人人天天夜夜摸 | 欧美男人天堂 | 亚洲视频一区二区三区 | 91麻豆精品国产91久久久资源速度 | 久久亚洲一区二区三区四区 | 免费成人高清 | 一区二区三区四区不卡视频 | 国产精品视频一区二区三区 | 五月激情六月婷婷 | 国产乱码久久久久久一区二区 | 高清一区二区三区 | 男女精品久久 | 91精品国产一区二区三区 | 国产中文字幕在线观看 | 久久久性 | 欧美一区二区三区久久精品视 | 色精品视频 | 国产高清一区二区 | 亚洲欧美bt| 成人精品鲁一区一区二区 | 中文字幕在线观看一区 |