ebocher · GitHub

Hi,

I'm testing HTMLUnit to run the following file https://raw.githubusercontent.com/ebocher/data_map/master/testResponsiveBarChart.html and then save the chart in a png file (from vega-lite save function).

Here the code I used

 final HtmlPage page = webClient.getPage("file:///tmp/testResponsiveBarChart.html");
 webClient.getOptions().setJavaScriptEnabled(true);
  webClient.waitForBackgroundJavaScript(50);

I got following exception :

GRAVE: Error during JavaScript execution
======= EXCEPTION START ========
Exception class=[net.sourceforge.htmlunit.corejs.javascript.EvaluatorException]
com.gargoylesoftware.htmlunit.ScriptException: missing formal parameter  (https://cdn.jsdelivr.net/npm/vega@5.19.1#1)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:960)

HtmlUnit Version: 2.54.0-SNAPSHOT
Java : 11.0
OS : Ubuntu

Thanks for any help

Read the original on github.com ↗