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了

  • 相关阅读:
    css基础--Display(显示) and Visibility(可见性)and position (定位)
    css3基础--Margin(外边距)&&padding(外边距)
    前端求职-js
    前端求职-html&css
    css基础3--box module&Border
    css基础-font&link&list属性
    值得学习的PHP
    c++构造函数浅析
    变量定义原则
    函数
  • 原文地址:https://www.cnblogs.com/wcLT/p/3503921.html
Copyright © 2011-2022 走看看