Skip to content

Tag: java

Global not defined when running a JS script in a Java application

I have a js script which I want to execute in my Java application. I have tried to use the Chromedriver API to do this But it throws the following exception: I am so confused because the script can simply run with node xx.js Does this mean the js which uses the global object cannot execute in a Java applicati…