zoukankan      html  css  js  c++  java
  • 【AI测试学习】【Python学习】解决:selenium.common.exceptions.WebDriverException: Message: 'chromedriver' 报错

    转自:https://blog.csdn.net/weixin_43746433/article/details/95237254

    “C:Python37libsite-packagesseleniumwebdriverchromewebdriver.py”, line 73, in init
    self.service.start()
    File “C:Python37libsite-packagesseleniumwebdrivercommonservice.py”, line 83, in start
    os.path.basename(self.path), self.start_error_message)
    selenium.common.exceptions.WebDriverException: Message: ‘chromedriver’ executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home

    解决办法:
    安装与浏览器版本匹配的webdriver
    1、打开谷歌浏览器, 在地址栏输入 chrome://version/ 查看版本信息:

    2、选择合适版本的驱动下载,
    下载地址:http://chromedriver.storage.googleapis.com/index.html

    3.解压下载的驱动放到指定目录,代码调用时指定该目录即可。
    解压后的目录:

    将chromedriver.exe 放入安装的selenium库下

    运行的程序如下:

     

    运行成功!!!!!!
    ————————————————
    版权声明:本文为CSDN博主「王大阳_」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
    原文链接:https://blog.csdn.net/weixin_43746433/article/details/95237254

  • 相关阅读:
    HBase with MapReduce (MultiTable Read)
    HBase with MapReduce (SummaryToFile)
    HBase with MapReduce (Summary)
    HBase with MapReduce (Read and Write)
    HBase with MapReduce (Only Read)
    Hbase中的BloomFilter(布隆过滤器)
    HBase的快照技术
    How To Use Hbase Bulk Loading
    Cloudera-Manager修改集群的IP
    Java中的HashSet和TreeSet
  • 原文地址:https://www.cnblogs.com/conquerorren/p/12881944.html
Copyright © 2011-2022 走看看