我在eclipse IDE中使用Junit4运行下面的测试脚本,我只得到一个空白的firefox窗口。服务器正在运行,当我从eclipse IDE开始测试时,没有弹出阻塞程序或任何其他firefox进程正在运行。
(当我从iE浏览器运行时,测试运行正常)
package com.resky.tutorials;
import org.junit.*;
import com.thoughtworks.selenium.*;
public class MySecondSeleniumTests {
@Test
public void initializeSeleniumRCServer() {
Selenium selenium = new DefaultSelenium("localhost", 4444, "*firefox", "https://74.27.8.1/");
selenium.start();
selenium.open("https://74.27.8.1/");
selenium.close();
selenium.stop();
}
}
答案 0 :(得分:0)
您确定它不是您导航到的页面是不可信的(我注意到您使用的是https,证书是否正确?