|
From: Jochen v. W. <jo...@va...> - 2022-07-04 11:38:48
|
Hi I am using HTMLUnit and got everything I needed working so far. Now I am stuck with an old JSF application that uses some JavaScript with a redirect popup to load content. When I load that page the only result I get is the redirect popup (HTML content) but not the updated page (in the browser it has a different URL). I have this: webClient.options.isCssEnabled = true webClient.options.isJavaScriptEnabled = true webClient.isRedirectEnabled = true webClient.cookieManager.isCookiesEnabled = true webClient.ajaxController = NicelyResynchronizingAjaxController() var thePage : HtmlPage = webClient.get(“someInternalUrl/…/entryPoint.xhtml?targetId=someId”) The redirect is working (as mentioned I get the content of the redirect HTML popup). In the browser I end up with an URL like this: https://someInternalUrl/…/resultOverview.xhtml How can I verify that this resultOverview.xhtml is loaded (it is in a browser)? How can I tell HTMLunit to update the page with it? Best Regards Jochen |