[Webtest] HTML attribute check

Michael Habbert Michael Habbert <Michael.Habbert@netpioneer.de>
Fri, 25 May 2007 12:57:01 +0200

Christoph Sandrus wrote:
> Hi to all!
> I have a little question:
> How can I verify a attribute with webtest?
> Example:
> If I want to check if a input field is disabled, which step do I have t=
> use?
> eg:
> <input name=3D"blabla" value=3D"stone" disabled>

Hi Christoph,

I would suggest you add an id-attribute to your input-field and check tha=
t tag with an RegExpression=20
based on the ID.

Mit freundlichen Gr=C3=BC=C3=9Fen

Michael Habbert