首页 > Web开发 > 详细

selenium webdriver - 结束进程

时间:2014-02-15 02:44:38      阅读:877      评论:0      收藏:0      [点我收藏+]
bubuko.com,布布扣
 1 import org.openqa.selenium.WebDriver;
 2 import org.openqa.selenium.firefox.FirefoxDriver;
 3 import org.openqa.selenium.os.WindowsUtils;
 4 /*
 5  * 结束进程
 6  */
 7 public class KillProcess {
 8 
 9     public static void main(String[] args) {
10         //结束进程
11         WindowsUtils.tryToKillByName("firefox.exe");
12         
13         WebDriver dr = new FirefoxDriver();
14         dr.get("http://www.baidu.com/");
15         
16     }
17 
18 }
bubuko.com,布布扣

selenium webdriver - 结束进程

原文:http://www.cnblogs.com/xiaot87/p/3549459.html

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