2 messages in com.canoo.lists.webtest[Webtest] verifyelementtext name attr...
FromSent OnAttachments
Laurence Chiu20 Sep 2002 12:05 
Dierk Koenig23 Sep 2002 01:11 
Subject:[Webtest] verifyelementtext name attribute
From:Laurence Chiu (c_la@yahoo.com)
Date:09/20/2002 12:05:25 PM
List:com.canoo.lists.webtest

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,

Laurence