Hi,
I started using HTMLUNIT recently for a different purpose. I am trying to retrieve the content and inner links from the web page.
But, while processing some of the webpages, I am getting javascript exceptions like:
EcmaError: lineNumber=[297] column=[0] lineSource=[<no source="">]</no> name=[TypeError]
org.mozilla.javascript.EvaluatorException: missing ; before statement (script in http://www.uiaa.org/urbana/constituents/ from (62, 31) to (0, 0)#71)
com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot find function item in object [object]. (http://www.lis.uiuc.edu/export/system/modules/edu.uiuc.lis/_common/resources/emaillinks-compact.js#1)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:554)
Can anyone please help me out as it is urgent.
Here I am uploading the exceptions.
Thanks,
Prasu
Logged In: YES
user_id=402164
Originator: NO
Before to report an issue with HtmlUnit's js support, please have a look in your "normal" browser. With Firefox, you would see following:
Error: missing ; before statement
Source file: http://www.uiaa.org/urbana/constituents/
Line: 71, Column: 61
Source code:
If (request.getSession().getAttribute(ÒuserInfoBeanÓ) == null) {