欢迎来到BlackTest-老王自动化测试

Selenium中如何运行 auto.exe 文件

Runtime exe = Runtime.getRuntime();
try{
String str = "D:\\Auto上传文件\\photo.exe";
exe.exec(str);
//运行制定位置的exe文件
}catch(IOException e) {
System.out.println("Error to run the exe");
e.printStackTrace();

}

 

很久没有发布博客了,今后都将补上,知识的累积记录

欢迎关注老王公众号

posted @ 2018-06-12 17:35  BlackTest  阅读(316)  评论(0编辑  收藏  举报