zoukankan      html  css  js  c++  java
  • selenium支付高版本的FireFox

    http://blog.csdn.net/pw_windgod/article/details/6537409

    15:22:12.031 WARN - GET /selenium-server/driver/?cmd=getNewBrowserSession&1=*fir
    efox&2=http://www.google.com HTTP/1.1
    java.lang.RuntimeException: Firefox refused shutdown while preparing a profile
            at org.openqa.selenium.server.browserlaunchers.FirefoxCustomProfileLaunc
    her.waitForFullProfileToBeCreated(FirefoxCustomProfileLauncher.java:277)

    后来查了google发现问题是selenium不支持高版本firefox, 解决方案如下:

     1、用winrar打开selenium-server.jar;
    2、查找两个目录:customProfileDirCUSTFFCHROME和customProfileDirCUSTFF;
    3、搜索每个目录,对每个文件install.rdf,编辑如下行:


    修改
    <!-- Firefox -->
            <em:targetApplication>
                <Description>
                    <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
                    <em:minVersion>1.4.1</em:minVersion>
                    <em:maxVersion>3.5.*</em:maxVersion>
                </Description>
            </em:targetApplication>


    <!-- Firefox -->
            <em:targetApplication>
                <Description>
                    <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
                    <em:minVersion>1.4.1</em:minVersion>
                    <em:maxVersion>3.6.*</em:maxVersion>
                </Description>
            </em:targetApplication>

            还可以改得更加大,那么就可以支持4.0 的firefox了

  • 相关阅读:
    Android Studio:layout-sw600dp文件夹中创建activity_main.xml
    Android Studio提示忽略大小写
    学习进度条-3
    二维数组
    人月神话阅读笔记01
    作业-数组
    学习进度条-2
    周四测试
    家庭家长本-微信小程序
    第一周开课博客园
  • 原文地址:https://www.cnblogs.com/wcLT/p/3503921.html
Copyright © 2011-2022 走看看