美文网首页
unable to find executable for :

unable to find executable for :

作者: Little_mi | 来源:发表于2019-01-04 11:24 被阅读0次

在测试脚本时发现,运行WebDriver的quit()方法时,出现以下报错:

“org.openqa.selenium.os.ProcessUtils killWinProcess
警告: Process refused to die after 10 seconds, and couldn't taskkill it
java.lang.NullPointerException: Unable to find executable for: taskkill”

原因是环境变量中没有添加taskkill的路径。

解决办法:taskkill默认在c:/Windows/System32下,在环境变量PATH中
添加此路径,确定关闭窗口。然后重新运行以下Eclipse或者其他编写工具,
重新运行即可。

相关文章

网友评论

      本文标题:unable to find executable for :

      本文链接:https://www.haomeiwen.com/subject/fwjhrqtx.html