zoukankan      html  css  js  c++  java
  • 【终极答案】搭建selenium3.11 +Firefox+python3.6自动化UI测试环境踩的坑

    1 运行之后,出现如下报错

    Selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH 

    信息显示 geckodriver需要在path环境变量中

    解决方法:

    下载geckodriver,地址为:https://github.com/mozilla/geckodriver/releases

    找到下载目录,将geckodriver.exe的安装路径添加到path里面;一般将geckodriver.exe放到Python安装目录

    2 按如上方法修改后,再次运行出现如下报错

    selenium.common.exceptions.WebDriverException: Message: Unable to find a matching set of capabilities

    信息显示geckodriver和selenium版本不兼容

    我使用的版本 :selenium3.11.0   geckodriver V0.15.0

    3 杀手锏,重要的事说三遍(适用于解决问题 2)

    重装Firefox,版本无所谓

    重装Firefox,版本无所谓

    重装Firefox,版本无所谓

  • 相关阅读:
    1021 个位数统计
    1020 月饼
    1019 数字黑洞
    1018 锤子剪刀布
    1017 A除以B
    1016 部分A+B
    1015 德才论
    1014 福尔摩斯的约会
    cocos2d 间隔动作
    cocos2d 瞬时动作
  • 原文地址:https://www.cnblogs.com/iloverain/p/8759174.html
Copyright © 2011-2022 走看看