[Webtest] verifyelementtext name attribute
Laurence Chiu
webtest@lists.canoo.com
Fri, 20 Sep 2002 12:05:47 -0700 (PDT)
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
__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com