首页 > 其他 > 详细

启动原生态火狐

时间:2016-11-16 15:27:23      阅读:188      评论:0      收藏:0      [点我收藏+]

Senlenium注意,支持的火狐版本问题。如启动不了当前版本,启动不能输入。建议安装43的。

这是启动火狐的一个方法。

火狐不用装驱动

1     // 启动火狐
2     public static void startfiref() {
3         ProfilesIni allpro = new ProfilesIni();  
4         FirefoxProfile profile = allpro.getProfile("default");
5         Driver = new FirefoxDriver(profile);
6         Driver.manage().window().maximize();
7         Driver.navigate().to("file:///D:/Users/demo1.html");  
8     }

 

启动原生态火狐

原文:http://www.cnblogs.com/hs22/p/6015371.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!