zoukankan      html  css  js  c++  java
  • Selenium之firefox浏览器的启动问题及解决

    启动firefox报错如下:

    rg.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
    ailure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsINavBookmarksService.removeFolderChildren]
    JavaScript error: jar:file:///D:/ztsoft/FireFox/browser/omni.ja!/components/nsBrowserGlue.js, line 1979: NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIAnnotationService.getItemsWithAnnotation]
    1522425391255 addons.manager DEBUG Loaded provider scope for resource://gre/modules/addons/XPIProvider.jsm: ["XPIProvider"]
    1522425391257 addons.manager DEBUG Loaded provider scope for resource://gre/modules/LightweightThemeManager.jsm: ["LightweightThemeManager"]
    1522425391259 addons.manager DEBUG Loaded provider scope for resource://gre/modules/addons/GMPProvider.jsm
    1522425391260 addons.manager DEBUG Loaded provider scope for resource://gre/modules/addons/PluginProvider.jsm
    1522425391260 addons.manager DEBUG Starting provider: XPIProvider
    1522425391261 addons.xpi DEBUG startup

    此时的selenium版本为2.44版本,firefox为39。

    配置selenium版本为2.52版本即可

    参考博客下面博客得知版本对应关系:https://blog.csdn.net/fetch001/article/details/64437979

    Selenium】    -> 【FireFox】

           2.25.0        ->  18
           2.30.0        ->  19
           2.31.0        ->  20
           2.42.2        ->  29
           2.44.0        ->  33 (不支持31)
           2.53.0        ->  43,46(不支持47)
           2.41.0        ->  26(绿色版本)
           2.44          ->  32.0-35.0
           2.53.0-2.53.6 ->  40.0.3

  • 相关阅读:
    XML decoding and encoding
    提高性能的BULK COLLECT语句和FORALL语句 IN PLSQL
    Dynamic Cursor in plsql (2)
    Dynamic Cursor in plsql (1)
    Cursor-----from cyber
    Viewpager结合fragment实现底部导航
    柱形图,饼图等
    Numpy的使用
    BP神经网络及其算法优化
    R语言结合概率统计的体系分析---数字特征
  • 原文地址:https://www.cnblogs.com/biyuting/p/8679414.html
Copyright © 2011-2022 走看看