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

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

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

      • <bdo id='S5bVE'></bdo><ul id='S5bVE'></ul>
    3. WebDriverException:消息:“無法連接到 ChromeDriver&quo

      WebDriverException: Message: #39;Can not connect to the ChromeDriver#39;. Error in utils.is_connectable(self.port):(WebDriverException:消息:“無法連接到 ChromeDriver.utils.is_connectable(self.port) 中的錯誤:) - IT屋-程序員軟件

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

            <legend id='APeW4'><style id='APeW4'><dir id='APeW4'><q id='APeW4'></q></dir></style></legend><tfoot id='APeW4'></tfoot>
              • <bdo id='APeW4'></bdo><ul id='APeW4'></ul>
              • <small id='APeW4'></small><noframes id='APeW4'>

              • 本文介紹了WebDriverException:消息:“無法連接到 ChromeDriver".utils.is_connectable(self.port) 中的錯誤:的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                我正在嘗試使用 chromedriver 2.10 在 CentOS 機器上的 Chrome 瀏覽器版本 35.0.1916.114 上運行測試

                /home/varunm/EC_WTF_0.4.10/EC_WTF0.4.10_Project/wtframework/wtf/drivers/chromedriver

                /home/varunm/EC_WTF_0.4.10/EC_WTF0.4.10_Project/wtframework/wtf/drivers/chromedriver

                實際上我修復了路徑問題,因為如果問題與路徑有關,則錯誤消息會有所不同

                Actually I fixed the path issue, because the error message was different if the issue was with path

                    def start(self):
                    """
                    Starts the ChromeDriver Service.
                
                    :Exceptions:
                     - WebDriverException : Raised either when it can't start the service
                       or when it can't connect to the service
                    """
                    env = self.env or os.environ
                    try:
                        self.process = subprocess.Popen([
                          self.path,
                          "--port=%d" % self.port] +
                          self.service_args, env=env, stdout=PIPE, stderr=PIPE)
                    except:
                        raise WebDriverException(
                            "ChromeDriver executable needs to be available in the path. 
                            Please download from http://chromedriver.storage.googleapis.com/index.html
                            and read up at http://code.google.com/p/selenium/wiki/ChromeDriver")
                    count = 0
                    while not utils.is_connectable(self.port):
                        count += 1
                        time.sleep(1)
                        if count == 30:
                             raise WebDriverException("Can not connect to the ChromeDriver")
                

                如果路徑錯誤,我會收到一些其他錯誤,但現在錯誤是在建立連接時

                If the path was wrong I will receive some other error, but now the error is while making the connection

                推薦答案


                適用于 Linux

                1.檢查你是否安裝了最新版本的chrome brwoser-> "chromium-browser -version"
                2.如果沒有,安裝最新版本的chrome sudo apt-get install chromium-browser"
                3. 從以下鏈接獲取適當版本的 chrome 驅動程序 http://chromedriver.storage.googleapis.com/index.html
                4.解壓chromedriver.zip
                5.將文件移動到/usr/bin/目錄sudo mv chromedriver/usr/bin/
                6. 轉到/usr/bin/目錄,你需要運行類似chmod a+x chromedriver"的東西來標記它可執行.
                7.終于可以執行代碼了.


                For Linux

                1. Check you have installed latest version of chrome brwoser-> "chromium-browser -version"
                2. If not, install latest version of chrome "sudo apt-get install chromium-browser"
                3. get appropriate version of chrome driver from following link http://chromedriver.storage.googleapis.com/index.html
                4. Unzip the chromedriver.zip
                5. Move the file to /usr/bin/ directory sudo mv chromedriver /usr/bin/
                6. Goto /usr/bin/ directory and you would need to run something like "chmod a+x chromedriver" to mark it executable.
                7. finally you can execute the code.

                import os
                from selenium import webdriver
                from pyvirtualdisplay import Display
                display = Display(visible=0, size=(800, 600))
                display.start()
                driver = webdriver.Chrome()
                driver.get("http://www.google.com")
                print driver.page_source.encode('utf-8')
                driver.quit()
                display.stop()
                

                這篇關于WebDriverException:消息:“無法連接到 ChromeDriver".utils.is_connectable(self.port) 中的錯誤:的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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 - 自動更改角色顏色)

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

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

                • <tfoot id='Goma8'></tfoot>
                    <bdo id='Goma8'></bdo><ul id='Goma8'></ul>
                  • <legend id='Goma8'><style id='Goma8'><dir id='Goma8'><q id='Goma8'></q></dir></style></legend>
                        <tbody id='Goma8'></tbody>

                          主站蜘蛛池模板: 精品亚洲一区二区三区 | 久久夜视频 | 在线观看中文字幕 | 日韩精品一区二区三区中文在线 | 午夜免费福利影院 | 丁香久久 | 中文字幕在线观看日韩 | 在线中文视频 | 一区二区免费在线观看 | 国产成人精品一区二区三区视频 | 午夜视频在线观看视频 | 日本不卡一区二区三区在线观看 | 国产高清精品一区二区三区 | 日韩二三区 | 日本在线免费看最新的电影 | 国产国产精品 | 欧美日韩高清在线一区 | 成人小视频在线观看 | 欧美一级www片免费观看 | 久久久亚洲 | 久久久久久久久国产成人免费 | 国产在线精品一区二区 | 精品国产一区二区三区免费 | 成人免费看黄网站在线观看 | 一区二区蜜桃 | 精品久久一区二区三区 | 国产激情视频网址 | 免费在线h视频 | 亚洲狠狠丁香婷婷综合久久久 | 国产免费自拍 | 欧美成人精品一区二区男人看 | 日韩网站免费观看 | 国产精品一区二区在线 | 青青草视频免费观看 | 九热在线 | 精品国产不卡一区二区三区 | 欧美理论 | 91成人精品| 日批av| 国产91 在线播放 | 成人做爰www免费看 午夜精品久久久久久久久久久久 |