2 messages in com.canoo.lists.webtestRE: [Webtest] verifyelementtext name ...
FromSent OnAttachments
Laurence Chiu20 Sep 2002 12:05 
Dierk Koenig23 Sep 2002 01:11 
Subject:RE: [Webtest] verifyelementtext name attribute
From:Dierk Koenig (dier@canoo.com)
Date:09/23/2002 01:11:54 AM
List:com.canoo.lists.webtest

Hi Laurence,

you are completely right.

ID is supported for all elements, NAME only for some. Therefore, we have gone for supporting both, first looking for NAME (for backward compatibility of tests) and ID if NAME was not found.

This is definitely one of the issues that we tackle next.

thanx Dierk

-----Original Message----- From: webt@lists.canoo.com [mailto:webt@lists.canoo.com]On Behalf Of Laurence Chiu Sent: Freitag, 20. September 2002 21:06 To: webt@lists.canoo.com Subject: [Webtest] verifyelementtext name attribute

Hi All!

I have begun using Canoo and I should say that it is a very neat alternative to HTTPUnit tests.

I tried to test the following table cell tag in an HTML file:

<td id="policyNum">123</td>

with the following canoo step:

<verifyelementtext stepid ="test policy number" type ="td" name ="policyNum" text="123" />

The canoo test fails.

However, if I change the table cell id attribute to name:

<td name="policyNum">123</td>

and test it with the same verifyelementtext tag mentioned above, the canoo test passes.

I have looked at the Canoo documentation and it says that it is looking for the name attribute for a specific html element when using the verifyelementtext task. It seems to behave the way as it should, which is good! However, the using the name attribute in a TD html element tag does not conform to the HTML specifications and it would certainly be nice if Canoo can search for the ID attribute when doing the verifyelementtext task.

Thanks,