|
为什么浏览器是ie就可以执行而firefox去不能执行,代码不是录制
package test;
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class CaipiaoPage extends SeleneseTestCase{
private Selenium selenium;
public void setUp() throws Exception {
String url = "http://www.500wan.com";
selenium = new DefaultSelenium("localhost", 4444, "*firefox",url);//4444 is default server port
selenium.start();
}
public void tearDown() throws Exception {
selenium.stop();
}
public void testUntitled() throws Exception {
selenium.setTimeout("20000");
selenium.open("http://www.500wan.com");
selenium.waitForPageToLoad("20000");
selenium.open("http://www.500wan.com/pages/info/guoguan/");
selenium.waitForPageToLoad("20000");
selenium.open("http://kaijiang.500wan.com/");
selenium.waitForPageToLoad("20000");
}
} |
|