From: Ahmed A. <asa...@ya...> - 2015-06-08 20:19:30
|
Hi, How about: List<TopLevelWindow> windows = webClient.getTopLevelWindows(); if (!windows.isEmpty()) { windows.get(windows.size() - 1).close(); } Ahmed From: Roberto Bottoni - AfterBit <r.b...@af...> To: htm...@li... Sent: Monday, June 8, 2015 5:04 PM Subject: [Htmlunit-user] Close Last Window Hi, I searched google.. but .. nothing found.. How can I close, just the last browser window? Thanks! ------------------------------------------------------------------------------ _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |