[Webtest] verifyelementtext name attribute
Dierk Koenig
webtest@lists.canoo.com
Mon, 23 Sep 2002 10:12:16 +0200
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: webtest-admin@lists.canoo.com
> [mailto:webtest-admin@lists.canoo.com]On Behalf Of Laurence Chiu
> Sent: Freitag, 20. September 2002 21:06
> To: webtest@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,
>
> Laurence
>
>
> __________________________________________________
> Do you Yahoo!?
> New DSL Internet Access from SBC & Yahoo!
> http://sbc.yahoo.com
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>