selenium入门问题记录

上一篇 / 下一篇  2015-04-20 15:49:30 / 个人分类:selenium

控制台报错信息是:selenium.firefox.NotConnectedException
现象:能打开浏览器,但未自定输入地址,原因是火狐浏览器和selenium版本不兼容,后来用了5.0的火狐就可以了,selenium的版本是2.25.0,代码是:
public class test{
 static WebDriver driver;
}
 public static void main (String[] args){
System.setproperty("webdriver.firefox.bin","D:\\Mozilla Firefox5.0\\firefox.exe"):
driver=new FirefoxDriver();
driver.get("http://www.baidu.com"):
}


TAG: 记录

 

评分:0

我来说两句

Open Toolbar