2 messages in com.canoo.lists.webtest[Webtest] com.gargoylesoftware.htmlun...
FromSent OnAttachments
Pawar, Gaurav Kishor (Gaurav)21 Aug 2006 14:39 
Marc Guillemot21 Aug 2006 23:02 
Subject:[Webtest] com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot read property "left" fromundefined ...
From:Pawar, Gaurav Kishor (Gaurav) (gpa@lucent.com)
Date:08/21/2006 02:39:52 PM
List:com.canoo.lists.webtest

Hi,

I am trying to run a sample code in Webtest that enters the login parameters and
then submits the info. I am getting the following error.

is this an error with htmlunit or is it a problem with the javascript??

Regards, Gaurav

[clickElement] INFO (com.canoo.webtest.steps.Step) - Running with: Canoo
Webtest: R_1217. [clickElement] INFO (com.canoo.webtest.steps.Step) - Exception thrown from this
class: com .canoo.webtest.engine.StepFailedException [clickElement] INFO (com.canoo.webtest.steps.Step) - Message was:
Step[clickElement "Follow the link to the next page" (5/6)]: Script error
loading page executing webtest at: clickElement Wrapped
com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot read property
"left" from undefined (Embedded script in
http://localhost:8080/getmessage.do#35) (event for HtmlImage[<img width="76"
height="26" onclick="document.getElementById('l oginForm').submit()" src="images/buttons/btn_login.gif" border="0" alt="Login"
id="LoginBut ton">]#1) [clickElement] Source code: [clickElement] function () { [clickElement] [native code, arity=0] [clickElement] }

INFO (com.canoo.webtest.ant.WebtestTask) - Test report successfully created.

BUILD FAILED C:\WebTest\myfile.xml:7: Canoo Webtest: R_1217. Test failed. Test step clickElement (C:\WebTest\myfile.xml:39: ) named "Follow the link to
the next page" failed with message "Step[clickElement "Follow the link to the
next page" (5/6)]: Script error loading page executing webtest at: clickElement
Wrapped com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot read
property "left" fromundefined (Embedded script in
http://localhost:8080/getmessage.do#35 (event for HtmlImage[<img width="76"
height="26" onclick="document.getElementById('loginForm').submit()"
src="images/buttons/btn_login.gif" border="0" alt="Login" id="LoginButton">]#1) Source code: function () { [native code, arity=0] } "

Total time: 4 seconds