Hi John,

seems that your site uses the ActiveX "Microsoft.XMLDOM" (which has the
 selectSingleNode method).
This ActiveX is not currently simulated by HtmlUnit, therefore this will
fail.
Is it an option for you to simulate FF there?

Marc.

John and Pip wrote:
> Hi,
> 
> I have a web app that I need to test but which I don't control the
> technology or architecture of. It is some sort of .net asp application.
> It's public but secure so I can't post the login details to list either
> unfortunately.
> 
> When I login the "home" page has a problem when loading that causes the
> submit to not return a page, even though in IE6 it does.
> 
> Here are the details:
> 
> *Error: *JavaScript error loading page
> https://production.jets-safeair.com/jets/security/login_ezelogin.htm
> <https://production.jets-safeair.com/jets/security/login_ezelogin.htm>:
> TypeError: Cannot call method "selectSingleNode" of undefined (
> https://production.jets-safeair.com/jets/ilrt/ILRTCore.js#901
> <https://production.jets-safeair.com/jets/ilrt/ILRTCore.js#901>)
> javascript errorTypeError: Cannot call method "selectSingleNode" of
> undefined (
> https://production.jets-safeair.com/jets/ilrt/ILRTCore.js#901
> <https://production.jets-safeair.com/jets/ilrt/ILRTCore.js#901>)
> line901
> javascript sourcefunction () { native code, arity=0
> <http://www.socialtext.net/jets/index.cgi?native%20code%2C%20arity%3D0> }
> failing line
> 
> This causes the submit to not fail (because I've turned error checking
> off) but to also not load the target page, so rest of test fails. Full
> relevant errors from debug mode follow:
> 
> clickButton <http://www.socialtext.net/jets/index.cgi?clickButton> DEBUG
> (com.canoo.webtest.steps.request.ClickButton) - button button found:
> HtmlButtonInput[<input id="btnSubmit" name="btnSubmit" value="Login"
> onclick="CallSubmitPage(&apos;tskstdlogin&apos;)" class="Dialogbuttons"
> type="button">]
> clickButton <http://www.socialtext.net/jets/index.cgi?clickButton> INFO
> (com.canoo.webtest.steps.request.ClickButton ) - > findTarget(by input):
> name=btnSubmit value=Login
> clickButton <http://www.socialtext.net/jets/index.cgi?clickButton> INFO
> (com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine ) Catched
> script exception
> clickButton <http://www.socialtext.net/jets/index.cgi?clickButton>
> ======= EXCEPTION START ========
> clickButton <http://www.socialtext.net/jets/index.cgi?clickButton>
> EcmaError: lineNumber= 901
> <http://www.socialtext.net/jets/index.cgi?901> column=0 lineSource=null
> <http://www.socialtext.net/jets/index.cgi?null> name= TypeError
> <http://www.socialtext.net/jets/index.cgi?TypeError> sourceName=
> https://production.jets-safeair.com/jets/ilrt/ILRTCore.js
> <http://www.socialtext.net/jets/index.cgi?https%3A%2F%2Fproduction.jets-safeair.com%2Fjets%2Filrt%2FILRTCore.js>
> message= TypeError: Cannot call method "selectSingleNode" of undefined
> (https://production.jets-safeair.com/jets/ilrt/ILRTCore.js#901)
> <http://www.socialtext.net/jets/index.cgi?TypeError%3A%20Cannot%20call%20method%20%22selectSingleNode%22%20of%20undefined%20%28https%3A%2F%2Fproduction.jets-safeair.com%2Fjets%2Filrt%2FILRTCore.js%23901%29>
> clickButton <http://www.socialtext.net/jets/index.cgi?clickButton>
> com.gargoylesoftware.htmlunit.ScriptException : TypeError: Cannot call
> method "selectSingleNode" of undefined (
> https://production.jets-safeair.com/jets/ilrt/ILRTCore.js#901
> <https://production.jets-safeair.com/jets/ilrt/ILRTCore.js#901>)
> clickButton <http://www.socialtext.net/jets/index.cgi?clickButton> at
> com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run
> (JavaScriptEngine.java :508)
> clickButton <http://www.socialtext.net/jets/index.cgi?clickButton> at
> org.mozilla.javascript.Context.call( Context.java:528)
> clickButton <http://www.socialtext.net/jets/index.cgi?clickButton> at
> org.mozilla.javascript.Context.call( Context.java:450)
> clickButton <http://www.socialtext.net/jets/index.cgi?clickButton> at
> com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction
> (JavaScriptEngine.java :421)
> clickButton <http://www.socialtext.net/jets/index.cgi?clickButton> at
> com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScrip
> tFunctionIfPossible(HtmlPage.java :738)
> clickButton <http://www.socialtext.net/jets/index.cgi?clickButton> at
> com.gargoylesoftware.htmlunit.html.HtmlPage.runEventHandler
> (HtmlPage.java:1498)
> clickButton <http://www.socialtext.net/jets/index.cgi?clickButton> at
> com.gargoylesoftware.htmlunit.html.HtmlPage.runEventHandler
> (HtmlPage.java:1474)
> clickButton <http://www.socialtext.net/jets/index.cgi?clickButton> at
> com.gargoylesoftware.htmlunit.html.ClickableElement.click
> (ClickableElement.java:122)
> clickButton <http://www.socialtext.net/jets/index.cgi?clickButton> at
> com.gargoylesoftware.htmlunit.html.ClickableElement.click
> (ClickableElement.java:89)
> 
> 
> <http://www.socialtext.net/jets/index.cgi?clickButton>
> 
> [snipped to stay within list size limit]
> <http://www.socialtext.net/jets/index.cgi?clickButton>
> 
> 
> clickButton <http://www.socialtext.net/jets/index.cgi?clickButton> at
> org.apache.tools.ant.Target.performTasks(Target.java:369)
> clickButton <http://www.socialtext.net/jets/index.cgi?clickButton> at
> org.apache.tools.ant.Project.executeSortedTargets (Project.java:1216)
> clickButton <http://www.socialtext.net/jets/index.cgi?clickButton> at
> org.apache.tools.ant.Project.executeTarget (Project.java:1185)
> clickButton <http://www.socialtext.net/jets/index.cgi?clickButton> at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets
> (DefaultExecutor.java:40)
> clickButton <http://www.socialtext.net/jets/index.cgi?clickButton> at
> org.apache.tools.ant.Project.executeTargets (Project.java:1068)
> clickButton <http://www.socialtext.net/jets/index.cgi?clickButton> at
> org.apache.tools.ant.Main.runBuild(Main.java :668)
> clickButton <http://www.socialtext.net/jets/index.cgi?clickButton> at
> org.apache.tools.ant.Main.startAnt(Main.java :187)
> clickButton <http://www.socialtext.net/jets/index.cgi?clickButton> at
> org.apache.tools.ant.launch.Launcher.run (Launcher.java:246)
> clickButton <http://www.socialtext.net/jets/index.cgi?clickButton> at
> org.apache.tools.ant.launch.Launcher.main (Launcher.java:67)
> clickButton <http://www.socialtext.net/jets/index.cgi?clickButton> ==
> CALLING JAVASCRIPT ==
> clickButton <http://www.socialtext.net/jets/index.cgi?clickButton>
> function () {
> clickButton <http://www.socialtext.net/jets/index.cgi?clickButton>
> native code, arity=0
> <http://www.socialtext.net/jets/index.cgi?native%20code%2C%20arity%3D0>
> clickButton <http://www.socialtext.net/jets/index.cgi?clickButton> }
> 
> clickButton <http://www.socialtext.net/jets/index.cgi?clickButton>
> ======= EXCEPTION END ========
> 
> clickButton <http://www.socialtext.net/jets/index.cgi?clickButton> DEBUG
> (com.canoo.webtest.steps.Step) - Finished clickButton (12/32)
> clickButton <http://www.socialtext.net/jets/index.cgi?clickButton> DEBUG
> (com.canoo.webtest.steps.Step) - Completed Step: clickButton (12/32)
> clickButton <http://www.socialtext.net/jets/index.cgi?clickButton> DEBUG
> (com.canoo.webtest.steps.AbstractBrowserAction ) - Current response
> didn't change during step execution
> clickButton <http://www.socialtext.net/jets/index.cgi?clickButton> DEBUG
> (com.canoo.webtest.steps.Step) - Step didn't produce results, no need to
> notifying listeners
> clickButton <http://www.socialtext.net/jets/index.cgi?clickButton> DEBUG
> (com.canoo.webtest.steps.Step) - <<<< Successful Step: clickButton (12/32)
> 
> So guess I need to find out why this fails when IE seems to accept it.
> Any advice on how to approach this?
> 
> I tried downloading HtmlUnit-20070803 but that did not help.
> 
> regards,
>            John


-- 
Blog: http://mguillem.wordpress.com

_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to