Skip to content

Rendering HTML page with VEGA-LITE js #381

Description

@ebocher

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/[email protected]#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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions