zoukankan      html  css  js  c++  java
  • mac chromedriver error

    问题一:MAC 使用splinter error

    Traceback (most recent call last):
        from splinter.browser import Browser
        b = Browser(driver_name="chrome")
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/splinter/browser.py", line 63, in Browser
        return driver(*args, **kwargs)
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/splinter/driver/webdriver/chrome.py", line 28, in __init__
        self.driver = Chrome(chrome_options=options, **kwargs)
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/selenium/webdriver/chrome/webdriver.py", line 61, in __init__
        self.service.start()
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/selenium/webdriver/chrome/service.py", line 73, in start
        os.path.basename(self.path), docs_msg)
    selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home

    解决办法:

    按照其他人的建议:brew install chromedriver  行不通。下载链接已失效。

    自己下载zip文件  地址:http://chromedriver.storage.googleapis.com/index.html

    接着 

    $unzip chromedriver_map32.zip 
    
    $mv chromedriver /usr/local/bin
    
    $cd /usr/local/bin
    
    $chmod a+x chromedirver

    完事!

  • 相关阅读:
    实验10 使用PBR实现策略路由
    实验9 使用route-policy控制路由
    实验8 filter-policy过滤路由
    实验7 ISIS多区域配置
    实验6 IS-IS基本配置
    MySQL复制表
    mysql数据备份
    mysql 创建用户,授权
    数据库
    mysql 修改文件记录:
  • 原文地址:https://www.cnblogs.com/tangkaixin/p/5040565.html
Copyright © 2011-2022 走看看