From: Ahmed A. <asa...@ya...> - 2015-11-06 09:34:19
|
Hi Greg, I was about to joke that this is a security feature :) Actually, HtmlUnit exactly matches real IE11 behavior (yes, a blank page). You need to change the BrowserVersion to CHROME, and send feedback to the bank about that. Ahmed From: Greg Johnson <gre...@sa...> To: htm...@li... Sent: Friday, November 6, 2015 6:03 AM Subject: [Htmlunit-user] IFrame and Javascript? Hi Guys, Logging into this banking site page with HtmlUnit used to work perfectly before the site added an Iframe. Now the following 2.18 code returns a blank (about:blank) page: public class HtmlUnitTest { private static final String NAB_INTERNET_BANKING = "https://ib.nab.com.au/nabib/index.jsp"; @Test public void testGetPageWithIFrame() throws Exception { WebClient webClient = new WebClient(BrowserVersion.INTERNET_EXPLORER_11); HtmlPage page = (HtmlPage) webClient.getPage(NAB_INTERNET_BANKING); } } I have tried to work through the HtmlUnit code but cannot see what is happening, any ideas or help would be much appreciated. Many thanks, Regards, Greg Johnson |