Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 Selenium,我执行了一个 AutoIt 脚本,该脚本打开 Microsoft Word 文档以进行比较。最后保存文件。
Selenium 脚本不会等到 AutoIt 可执行文件完成。我怎样才能让 Selenium 脚本做到这一点?
希望这可以帮助你。
Process proc=Runtime.getRuntime().exec("Location to your script"); InputStream is = proc.getInputStream(); int retCode = 0; while(retCode != -1) { retCode = is.read(); } System.Out.println("Now Exiting");