zoukankan      html  css  js  c++  java
  • selenium.common.exceptions.WebDriverException: Message: Unable to find a matching set of capabilities

    环境:Python3+selenium3+Firefox47

    在打开火狐浏览器时报错:'geckodriver' executable needs to be in PATH

    from selenium import webdriver
    web = webdriver.Firefox()
    

    于是,各种度娘,最终做了如下尝试:

      下载了geckodriver-v0.18.0-win64,解压将geckodriver.exe放到火狐浏览器目录下,然后把火狐浏览器目录添加到path环境变量。

      结果又出现报错:selenium.common.exceptions.WebDriverException: Message: Unable to find a matching set of capabilities

    随后,再次度娘,做了如下操作,成功:

      更新火狐浏览器到Firefox54

    geckodriver.exe下载网址:https://github.com/mozilla/geckodriver/releases/

  • 相关阅读:
    3D照片放大展示窗口
    [NOI2015]品酒大会
    [SDOI2016]排列计数
    [SCOI2008]奖励关
    HDU4336 Card Collector
    CF540D Bad Luck Island
    [NOI2016]网格
    HDU3076 ssworld VS DDD
    [USACO10HOL]赶小猪
    CF113D Museum
  • 原文地址:https://www.cnblogs.com/liyanqi/p/7357025.html
Copyright © 2011-2022 走看看