7 messages in com.canoo.lists.webtestRE: [Webtest] How to invoke Javascrip...
FromSent OnAttachments
Thakkar, Hetal27 Jun 2003 16:53 
Brandon Moore30 Jun 2003 09:04.dat
Thakkar, Hetal30 Jun 2003 10:18 
Brandon Moore30 Jun 2003 10:31.dat
Aatish Arora30 Jun 2003 11:39 
Thakkar, Hetal30 Jun 2003 14:19 
Thakkar, Hetal01 Jul 2003 08:45 
Subject:RE: [Webtest] How to invoke Javascript from canoo?
From:Thakkar, Hetal (heta@citigroup.com)
Date:07/01/2003 08:45:10 AM
List:com.canoo.lists.webtest

This might happen because you don't have js.jar in your classpath. Most probably
the problem is occurring because one of the jar files is not in your classpath.

As for my case, yes javascript is submitting a form that should make the server
change the database.

Hetal

-----Original Message----- From: Brandon Moore [mailto:bmo@commcode.com] Sent: Monday, June 30, 2003 10:32 AM To: webt@gate.canoo.com Subject: RE: [Webtest] How to invoke Javascript from canoo?

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?

-----Original Message----- From: webt@lists.canoo.com [mailto:webt@lists.canoo.com]On Behalf Of Thakkar, Hetal Sent: Monday, June 30, 2003 12:19 PM To: webt@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 "áSubmitá", I tried
using that and I get the same link not found error with text "ßSubmitß". I think
the problem here is that for some reason when I put "á" in my tests it is
changed to "ß" when comparing, so it does not work.

Thanks for your reply, Hetal