Terminat or Stop HtmlUnit

I use htmlunit to check the website, and I noticed that htmlunit is stuck on some web pages. This problem creates a thread in which htmlunit was called due to non-termination. Please, you know how to stop Htmlunit, as in a real web browser, where you just click the stop button of browsers. I want to stop / end Htmlunit when it is stuck / freezes when accessing a webpage.

Thanks.

+1
htmlunit
source share
1 answer

It should do it

webClient.closeAllWindows(); 
0
source share

All Articles