This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Testing and the fly likes Selenium - com.gargoylesoftware.htmlunit.ScriptException: Exception invoking jsxSet_innerHTML Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Selenium - com.gargoylesoftware.htmlunit.ScriptException: Exception invoking jsxSet_innerHTML" Watch "Selenium - com.gargoylesoftware.htmlunit.ScriptException: Exception invoking jsxSet_innerHTML" New topic
Author

Selenium - com.gargoylesoftware.htmlunit.ScriptException: Exception invoking jsxSet_innerHTML

Nitish Borade
Greenhorn

Joined: Aug 28, 2012
Posts: 3
I am using Selenium, HtmlUnitDriver with HtmlUnit Ver. 10. I am getting the following stacktrace:

SEVERE: Job run failed with unexpected RuntimeException: Exception invoking jsxSet_innerHTML
======= EXCEPTION START ========
Exception class=[com.gargoylesoftware.htmlunit.ScriptException]
com.gargoylesoftware.htmlunit.ScriptException: Exception invoking jsxSet_innerHTML
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:594)
at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:537)
at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:538)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:544)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:519)
at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:927)
at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptFunctionJob.runJavaScript(JavaScriptFunctionJob.java:53)
at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptExecutionJob.run(JavaScriptExecutionJob.java:101)
at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl.runSingleJob(JavaScriptJobManagerImpl.java:328)
at com.gargoylesoftware.htmlunit.javascript.background.DefaultJavaScriptExecutor.run(DefaultJavaScriptExecutor.java:153)

Source Code:

HtmlUnitDriver driver = new HtmlUnitDriver();
driver.setJavascriptEnabled(true);
driver.get(url);

try {
Thread.sleep(10000L);
} catch (InterruptedException e) {
e.printStackTrace();
}
System.out.println(driver.getPageSource());
 
 
subject: Selenium - com.gargoylesoftware.htmlunit.ScriptException: Exception invoking jsxSet_innerHTML
 
Similar Threads
New to automation tesing
POST method parameters
ReportServiceException while running the report using BIRT Viewer 3.7.2
Not able to retrieve data for Secured site
JUnit Threads still running after test ends