Internet Explorer 11 does not close after Selenium Test

…衆ロ難τιáo~ 提交于 2019-12-01 19:19:55
murali selenium

If we are not able to close the IE by webdriver commands and at this moment it becomes stopping stone, so why cant we take help from language may be Java from my side to close it.

  try {
Runtime.getRuntime().exec("taskkill /F /IM IEDriverServer.exe");
} catch (IOException e) {
e.printStackTrace();
}

Known that good to close browser by driver command but till it get works i hope we can try above. see this

Thank You, Murali

As mentioned by @Sonny in the comments by you might need to kill the "iexplorer.exe" task

I have both in the pre-build events:

    taskkill /f /fi "pid gt 0" /im IEDriverServer.exe
    taskkill /f /fi "pid gt 0" /im iexplore.exe
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!