This code fails
public static void main(String[] args) throws Exception {
final WebClient webClient = new WebClient(BrowserVersion.CHROME);
final HtmlPage webPage = (HtmlPage) webClient.getPage("https://www.marinetraffic.com/");
System.out.println(webPage.asXml());
}
Had done a lot of debugging but was not able to fix this so far.
What i found:
Last edit: RBRi 2017-06-30
Minimal progress - the reason seems to be because the script switches to scrict mode.
I think i have an idea now what is going on here
Test case added
com.gargoylesoftware.htmlunit.html.HtmlInlineFrame2Test.createIframeFromStrictFunction()
Last edit: RBRi 2017-10-15
Any update on this?
The error is reproduced on the site https://beru.ru/
Fix is broken. See https://sourceforge.net/p/htmlunit/bugs/1974/