From: SourceForge.net <no...@so...> - 2007-02-15 08:42:02
|
Bugs item #1660053, was opened at 2007-02-14 21:56 Message generated for change (Comment added) made by mguillem You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=448266&aid=1660053&group_id=47038 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: 1.10 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Mark Robinson (plasmoid) Assigned to: Nobody/Anonymous (nobody) Summary: Button with id='submit' causes bugs Initial Comment: I have a page with a button with the id submit but type is not 'submit', it's actually 'button'. If I attempt to click the button with HTMLUnit, I get Exception in thread "Thread-0" ======= EXCEPTION START ======== EcmaError: lineNumber=[4209] column=[0] lineSource=[null] name=[TypeError] sourceName=[http://localhost:46201/Alogho-war/adf/jsLibs/Common11-m7.js;jsessionid=67D99710017698C6898F13880975EAE1] message=[TypeError: submit is not a function, it is com.gargoylesoftware.htmlunit.javascript.host.Button. (http://localhost:46201/Alogho-war/adf/jsLibs/Common11-m7.js;jsessionid=67D99710017698C6898F13880975EAE1#4209)] com.gargoylesoftware.htmlunit.ScriptException: TypeError: submit is not a function, it is com.gargoylesoftware.htmlunit.javascript.host.Button. (http://localhost:46201/Alogho-war/adf/jsLibs/Common11-m7.js;jsessionid=67D99710017698C6898F13880975EAE1#4209) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:319) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:737) at com.gargoylesoftware.htmlunit.html.HtmlPage.runEventHandler(HtmlPage.java:1463) If you need an example, I can probably create one quickly. ---------------------------------------------------------------------- >Comment By: Marc Guillemot (mguillem) Date: 2007-02-15 09:42 Message: Logged In: YES user_id=402164 Originator: NO Without an example, it is difficult to make a diagnostic. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=448266&aid=1660053&group_id=47038 |