zoukankan      html  css  js  c++  java
  • selenium启动firefox打开导入向导问题解决

    操作系统:win8-64位

    火狐版本:40.0.2

    问题描述:selenium启动firefox时,每次启动都提示我导入其他浏览器的页签,如下图所示

    解决方法一:

    到firefox的profiles.ini所在文件中修改IsRelative=1->IsRelative=0

     C:Users{用户名}AppDataRoamingMozillaFirefoxprofiles.ini

     再次启动即可正常打开。

    备注:这种解决方案,火狐浏览器一旦重新启动后,又会出现烦人的导入向导,并不能彻底解决问题。

    解决方法二:

    每次使用Selenium启动Firefox的时候都默认出现导入向导,我们的解决办法是需要创建一个专门用于Selenium使用的用户文件。

    参考资料:https://my.oschina.net/jiangbianwanghai/blog/508736

  • 相关阅读:
    Split Temporary Variable
    Introduce Explaining Variable
    Replace Temp with Query
    Extract Method
    自测代码的价值
    代码的坏味道
    Divergent Change & Shotgun Surgery
    Large Class
    Long Method
    Duplicated Code
  • 原文地址:https://www.cnblogs.com/xtt-w/p/5905631.html
Copyright © 2011-2022 走看看