Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rendering HTML page with VEGA-LITE js #381

Open
ebocher opened this issue Sep 21, 2021 · 2 comments
Open

Rendering HTML page with VEGA-LITE js #381

ebocher opened this issue Sep 21, 2021 · 2 comments

Comments

@ebocher
Copy link

ebocher commented Sep 21, 2021

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

@rbri
Copy link
Member

rbri commented Sep 21, 2021

see #232

Rhino does not support rest parameter, there is still hope to get this fixes. Please be a bit patient.

@ebocher
Copy link
Author

ebocher commented Sep 22, 2021

Thanks @rbri to point me this issue on Rhino and thanks to offer to the open source community HTMLUnit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants