pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

      <bdo id='9O8nI'></bdo><ul id='9O8nI'></ul>
    <legend id='9O8nI'><style id='9O8nI'><dir id='9O8nI'><q id='9O8nI'></q></dir></style></legend>

  1. <small id='9O8nI'></small><noframes id='9O8nI'>

    1. <tfoot id='9O8nI'></tfoot>
      <i id='9O8nI'><tr id='9O8nI'><dt id='9O8nI'><q id='9O8nI'><span id='9O8nI'><b id='9O8nI'><form id='9O8nI'><ins id='9O8nI'></ins><ul id='9O8nI'></ul><sub id='9O8nI'></sub></form><legend id='9O8nI'></legend><bdo id='9O8nI'><pre id='9O8nI'><center id='9O8nI'></center></pre></bdo></b><th id='9O8nI'></th></span></q></dt></tr></i><div class="rnl5vll" id='9O8nI'><tfoot id='9O8nI'></tfoot><dl id='9O8nI'><fieldset id='9O8nI'></fieldset></dl></div>

      Selenium 無法在 CentOS 中啟動 Chromedriver

      Selenium fails to start Chromedriver in CentOS(Selenium 無法在 CentOS 中啟動 Chromedriver)
        <tbody id='5eWHd'></tbody>
        <tfoot id='5eWHd'></tfoot>

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

          • <small id='5eWHd'></small><noframes id='5eWHd'>

            <legend id='5eWHd'><style id='5eWHd'><dir id='5eWHd'><q id='5eWHd'></q></dir></style></legend>
              • <bdo id='5eWHd'></bdo><ul id='5eWHd'></ul>
              • 本文介紹了Selenium 無法在 CentOS 中啟動 Chromedriver的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                我嘗試用 Selenium 啟動 Chromedriver

                從 selenium 導入 webdriver驅動程序 = webdriver.Chrome()driver.get("http://www.google.com/")打印(驅動程序.標題)

                和下面的錯誤消息:

                raise exception_class(message, screen, stacktrace)selenium.common.exceptions.WebDriverException:消息:未知錯誤:Chrome 無法啟動:異常退出(驅動信息:chromedriver=2.33.506092,platform=Linux 3.10.0-693.5.2.el7.x86_64 x86_64)

                我正在使用這些:

                [root@jdu4e00u53f7 工作區]# ll/usr/local/bin/chromedriverlrwxrwxrwx 1 root root 17 11 月 14 00:31/usr/local/bin/chromedriver ->/opt/chromedriver

                • CentOS 7.3
                • Python(3.6.2)
                • 硒 (3.7.0)
                • 谷歌瀏覽器 (62.0.3202.89)
                • chromedriver(2.9)/我改成chromedriver=2.33.506092
                • Xvfb

                ps,我也試過了

                1. driver = webdriver.Chrome('/usr/local/bin/chromedriver'),不行……

                test.py輸出

                參考:Selenium 無法啟動 Chromedriver

                1. 在我的服務器上在后臺啟動 Xvfb:Xvfb :0 -ac -screen 0 1024x768x24 &也不起作用

                ref:未知錯誤:Chrome 失敗啟動:異常退出(驅動信息:chromedriver=2.9

                解決方案

                從您提到的配置中可以明顯看出您使用的是 Selenium v??3.7.0, Google Chrome 62.0 以及不兼容的 chromedriver v2.9.因此,我們看到了錯誤 WebDriverException: Message: unknown error: Chrome failed to start: exited異常

                <塊引用>

                ChromeDriver v2.33的發行說明明確提到Supports Chrome v60-62

                解決方案:

                chromedriver v2.33="nofollow noreferrer">this link 并執行你的測試用例.

                更新:

                試試下面的代碼塊:

                從 selenium 導入 webdriverdriver = webdriver.Chrome(executable_path='/usr/local/bin/chromedriver')driver.get('https://www.google.co.in')print("頁面標題是:%s" %driver.title)driver.quit()

                <塊引用>

                從 selenium 導入 webdriverdriver = webdriver.Chrome(executable_path='/opt/chromedriver')driver.get('https://www.google.co.in')print("頁面標題是:%s" %driver.title)driver.quit()

                I try to start Chromedriver with Selenium

                from selenium import webdriver
                driver = webdriver.Chrome()
                driver.get("http://www.google.com/")
                print(driver.title)
                

                and error msg below:

                raise exception_class(message, screen, stacktrace)
                selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally
                 (Driver info: chromedriver=2.33.506092,platform=Linux 3.10.0-693.5.2.el7.x86_64 x86_64)
                

                I am using these:

                [root@jdu4e00u53f7 workspace]# ll /usr/local/bin/chromedriver
                lrwxrwxrwx 1 root root 17 11月 14 00:31 /usr/local/bin/chromedriver -> /opt/chromedriver
                

                • CentOS 7.3
                • Python(3.6.2)
                • selenium (3.7.0)
                • Google Chrome (62.0.3202.89)
                • chromedriver(2.9)/ I changed to chromedriver=2.33.506092
                • Xvfb

                ps, I also tried

                1. driver = webdriver.Chrome('/usr/local/bin/chromedriver'),it not work...

                test.py output

                ref :Selenium fails to start Chromedriver

                1. On my server start Xvfb in the background: Xvfb :0 -ac -screen 0 1024x768x24 & and also not work

                ref:unknown error: Chrome failed to start: exited abnormally (Driver info: chromedriver=2.9

                解決方案

                It is much evident from your mentioned configuration that you are using Selenium v3.7.0, Google Chrome 62.0 along with chromedriver v2.9 which is not compatible. Hence we are seeing the error WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally

                The Release Notes of ChromeDriver v2.33 clearly mentions Supports Chrome v60-62

                Solution:

                Download the latest chromedriver v2.33 from this link and execute your testcase.

                Update :

                Try the following code block :

                from selenium import webdriver
                driver = webdriver.Chrome(executable_path='/usr/local/bin/chromedriver')
                driver.get('https://www.google.co.in')
                print("Page Title is : %s" %driver.title)
                driver.quit()
                

                OR

                from selenium import webdriver
                driver = webdriver.Chrome(executable_path='/opt/chromedriver')
                driver.get('https://www.google.co.in')
                print("Page Title is : %s" %driver.title)
                driver.quit()
                

                這篇關于Selenium 無法在 CentOS 中啟動 Chromedriver的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                相關文檔推薦

                python: Two modules and classes with the same name under different packages(python:不同包下同名的兩個模塊和類)
                Configuring Python to use additional locations for site-packages(配置 Python 以使用站點包的其他位置)
                How to structure python packages without repeating top level name for import(如何在不重復導入頂級名稱的情況下構造python包)
                Install python packages on OpenShift(在 OpenShift 上安裝 python 包)
                How to refresh sys.path?(如何刷新 sys.path?)
                Distribute a Python package with a compiled dynamic shared library(分發帶有已編譯動態共享庫的 Python 包)

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

                • <legend id='D2Bjg'><style id='D2Bjg'><dir id='D2Bjg'><q id='D2Bjg'></q></dir></style></legend>

                  1. <i id='D2Bjg'><tr id='D2Bjg'><dt id='D2Bjg'><q id='D2Bjg'><span id='D2Bjg'><b id='D2Bjg'><form id='D2Bjg'><ins id='D2Bjg'></ins><ul id='D2Bjg'></ul><sub id='D2Bjg'></sub></form><legend id='D2Bjg'></legend><bdo id='D2Bjg'><pre id='D2Bjg'><center id='D2Bjg'></center></pre></bdo></b><th id='D2Bjg'></th></span></q></dt></tr></i><div class="5j7xdxb" id='D2Bjg'><tfoot id='D2Bjg'></tfoot><dl id='D2Bjg'><fieldset id='D2Bjg'></fieldset></dl></div>
                    1. <tfoot id='D2Bjg'></tfoot>

                          <tbody id='D2Bjg'></tbody>
                        • <bdo id='D2Bjg'></bdo><ul id='D2Bjg'></ul>
                          主站蜘蛛池模板: 净水器代理,净水器招商,净水器加盟-FineSky德国法兹全屋净水 | 沈阳建筑设计公司_加固改造设计_厂房设计_设计资质加盟【金辉设计】 | PSI渗透压仪,TPS酸度计,美国CHAI PCR仪,渗透压仪厂家_价格,微生物快速检测仪-华泰和合(北京)商贸有限公司 | 液压油缸-液压缸厂家价格,液压站系统-山东国立液压制造有限公司 液压油缸生产厂家-山东液压站-济南捷兴液压机电设备有限公司 | 对辊式破碎机-对辊制砂机-双辊-双齿辊破碎机-巩义市裕顺机械制造有限公司 | 江苏全风,高压风机,全风环保风机,全风环形高压风机,防爆高压风机厂家-江苏全风环保科技有限公司(官网) | MVR蒸发器厂家-多效蒸发器-工业废水蒸发器厂家-康景辉集团官网 | EFM 022静电场测试仪-套帽式风量计-静电平板监测器-上海民仪电子有限公司 | TTCMS自助建站_网站建设_自助建站_免费网站_免费建站_天天向上旗下品牌 | BOE画框屏-触摸一体机-触控查询一体机-触摸屏一体机价格-厂家直销-触发电子 | 服务器之家 - 专注于服务器技术及软件下载分享 | 南京试剂|化学试剂|分析试剂|实验试剂|cas号查询-专业60年试剂销售企业 | 强效碱性清洗剂-实验室中性清洗剂-食品级高纯氮气发生器-上海润榕科学器材有限公司 | 重庆网站建设,重庆网站设计,重庆网站制作,重庆seo,重庆做网站,重庆seo,重庆公众号运营,重庆小程序开发 | 带式过滤机厂家_价格_型号规格参数-江西核威环保科技有限公司 | 乐泰胶水_loctite_乐泰胶_汉高乐泰授权(中国)总代理-鑫华良供应链 | 范秘书_懂你的范文小秘书 | 软文发布-新闻发布推广平台-代写文章-网络广告营销-自助发稿公司媒介星 | 外贸网站建设-外贸网站设计制作开发公司-外贸独立站建设【企术】 | 玉米深加工设备|玉米加工机械|玉米加工设备|玉米深加工机械-河南成立粮油机械有限公司 | 杭州代理记账费用-公司注销需要多久-公司变更监事_杭州福道财务管理咨询有限公司 | 数显恒温培养摇床-卧式/台式恒温培养摇床|朗越仪器 | 昆山PCB加工_SMT贴片_PCB抄板_线路板焊接加工-昆山腾宸电子科技有限公司 | 传爱自考网_传爱自学考试网 | 玉米深加工设备-玉米深加工机械-新型玉米工机械生产厂家-河南粮院机械制造有限公司 | 日本细胞免疫疗法_肿瘤免疫治疗_NK细胞疗法 - 免疫密码 | 四探针电阻率测试仪-振实密度仪-粉末流动性测定仪-宁波瑞柯微智能 | 宁夏档案密集柜,智能密集柜,电动手摇密集柜-盛隆柜业宁夏档案密集柜厂家 | 超声波清洗机_超声波清洗机设备_超声波清洗机厂家_鼎泰恒胜 | 面粉仓_储酒罐_不锈钢储酒罐厂家-泰安鑫佳机械制造有限公司 | 珠光砂保温板-一体化保温板-有釉面发泡陶瓷保温板-杭州一体化建筑材料 | 山东风淋室_201/304不锈钢风淋室净化设备厂家-盛之源风淋室厂家 翻斗式矿车|固定式矿车|曲轨侧卸式矿车|梭式矿车|矿车配件-山东卓力矿车生产厂家 | 万濠影像仪(万濠投影仪)百科-苏州林泽仪器 | 电机修理_二手电机专家-河北豫通机电设备有限公司(原石家庄冀华高压电机维修中心) | 全自动五线打端沾锡机,全自动裁线剥皮双头沾锡机,全自动尼龙扎带机-东莞市海文能机械设备有限公司 | 真空搅拌机-行星搅拌机-双行星动力混合机-广州市番禺区源创化工设备厂 | 动库网动库商城-体育用品专卖店:羽毛球,乒乓球拍,网球,户外装备,运动鞋,运动包,运动服饰专卖店-正品运动品网上商城动库商城网 - 动库商城 | 希望影视-高清影视vip热播电影电视剧免费在线抢先看 | 档案密集架_电动密集架_移动密集架_辽宁档案密集架-盛隆柜业厂家现货批发销售价格公道 | 真空泵厂家_真空泵机组_水环泵_旋片泵_罗茨泵_耐腐蚀防爆_中德制泵 | 工业车间焊接-整体|集中除尘设备-激光|等离子切割机配套除尘-粉尘烟尘净化治理厂家-山东美蓝环保科技有限公司 |