[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!
>=20
> I have a little question:
> How can I verify a attribute with webtest?
>=20
> Example:
> If I want to check if a input field is disabled, which step do I have t=
o=20
> use?
> eg:
>=20
> <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.

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

Michael Habbert