您的位置:首页 > 其它

selenium打开firefox打开为导入向导问题解决。

2015-06-03 14:35 267 查看
问题现象:

public void setUp() throws Exception {

        setUp("http://sc30.sseinfo.com:8080/","*googlechrome");

        //setUp("http://www.baidu.com/","*chrome C:/Program Files/Mozilla Firefox/firefox.exe");

    }

    /** 

     * @param args 

     */  
public void testNew() throws Exception {
String url="/mvote/web/mvote/login.jsp";
 selenium.open(url);
}

打开发现会到导入向导页面。

解决方法:

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

C:\Users\{用户名}\AppData\Roaming\Mozilla\Firefox\profiles.ini

再次启动即可正常打开。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: