[Webtest] How to invoke Javascript from canoo?

Brandon Moore webtest@lists.canoo.com
Mon, 30 Jun 2003 12:31:30 -0500


This is a multi-part message in MIME format.

------=_NextPart_000_0005_01C33F03.8A0DFC50
Content-Type: text/plain;
	charset="utf-8"
Content-Transfer-Encoding: quoted-printable

You could try using the verifyxpath task to compare the contents of the
<a> tag with a string, so you can see what the xpath engine canoo uses
comes up with. You don't have any trouble following the link if you use
an empty label? Any time I try to write a test that follows a link canoo
dies with a NoClassDefFound exception inside rhino, missing
Javascript$Form from HttpUnit. Any idea why that would be happening?
I'm using the latest version.

I would try coding the test in HttpUnit and see if that hits the =
database.
What do you mean the javascript should change the database? Do you mean
the javascript should submit a form that should make the server change
the database?

Brandon

-----Original Message-----
From: webtest-admin@lists.canoo.com
[mailto:webtest-admin@lists.canoo.com]On Behalf Of Thakkar, Hetal
Sent: Monday, June 30, 2003 12:19 PM
To: webtest@gate.canoo.com
Subject: RE: [Webtest] How to invoke Javascript from canoo?


Hi Brandon,

When I use "" as label of link then the test runs without any error, but
this function "SubmitWithDisclosure" is supposed to update a database, =
which
is not being done, so I don't think it is invoked.
When I use "Submit" or " Submit " as label of the link then I get link =
not
found error.
The xpath returns "\u00A0Submit\u00A0", which is unicode for =
"=C3=A1Submit=C3=A1", I
tried using that and I get the same link not found error with text
"=C3=9FSubmit=C3=9F". I think the problem here is that for some reason =
when I put "=C3=A1"
in my tests it is changed to "=C3=9F" when comparing, so it does not =
work.

Thanks for your reply,
Hetal

------=_NextPart_000_0005_01C33F03.8A0DFC50
Content-Type: application/ms-tnef;
	name="winmail.dat"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="winmail.dat"

eJ8+IiARAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAEIgAcAGAAAAElQTS5NaWNy
b3NvZnQgTWFpbC5Ob3RlADEIAQaAAwAOAAAA0wcGAB4ADAAfAB4AAQBIAQENgAQAAgAAAAIAAgAB
A5AGAPQKAAAzAAAAAw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