2 messages in com.canoo.lists.webtest[Webtest] Help on javascript button| From | Sent On | Attachments |
|---|---|---|
| Reuben Firmin | 27 Jan 2005 12:12 | |
| Marc Guillemot | 28 Jan 2005 00:13 |
| Subject: | [Webtest] Help on javascript button![]() |
|---|---|
| From: | Reuben Firmin (Reub...@cnet.com) |
| Date: | 01/27/2005 12:12:24 PM |
| List: | com.canoo.lists.webtest |
Hi,
I have a button in a form:
<input type="submit" name="review" id="review1" value="Review" onclick='document.homeLayoutForm.action="/app/Review.html";' />
...which I'm attempting to target:
<clickbutton name="${button.review}" stepid="Click ${button.review}."> <form name="homeLayoutForm"/> <index value="0"/> </clickbutton>
This results in:
[testSpec] INFO (ClickButton.java:141) - -> gotoTarget(by Button): name=review value=Review [testSpec] INFO (Context.java:186) - Current form set to none [testSpec] INFO (Step.java:233) - Start Step: verifytitle "Check review page title" (10/16) {FAIL}
Using a java debugger, I discovered that it isn't actually getting to /app/Review.html (which is actually rewritten to a servlet call). I turned saveresponse on, and there were no error messages. So I then wondered whether this was a javascript problem; I attempted to turn on javascript in various ways:
<enablejavascript enable="true"/> <enableJavaScript enable="true"/> <enablejavascript enable="true" stepid="foo"/>
...all of which fail with:
Could not create task or type of type: enablejavascript.
Ant could not find the task or a class this task relies upon.
I am using build 543, according to BuildNumber.txt. Would building from cvs fix this, or am I doing something wrong?
(Incidentally, the build.zip for 1.6 does not "contain all you need to get started", as WebTest.dtd is missing (I found it in doc.zip). Is this by design or by ommission?)
Thanks Reuben




