我解决了 其实这是我的坏事。以前,我的代码是这样的:
c1.get(“http://www.test.com”); Runtime.getRuntime().exec("C:\POM_Newdemo\EF_Automation_Demo\UI3_Authentication.exe");我在get()之前添加了autoit代码,如下所示:
Runtime.getRuntime().exec("C:\POM_Newdemo\EF_Automation_Demo\UI3_Authentication.exe");c1.get(“http://www.test.com”);


