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();

}

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

猜你喜欢

转载自www.cnblogs.com/wangyinghao/p/9174263.html