[Webtest] HTML attribute check

Cormac Parle Cormac Parle <cormac@morsolutions.com>
Fri, 25 May 2007 12:05:00 +0100

If you're using xhtml it would perhaps be better to use 
disabled="disabled" rather than adding an id as it's standards compliant

Michael Habbert wrote:
> 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 
>> to use?
>> eg:
>> <input name="blabla" value="stone" disabled>
> Hi Christoph,
> I would suggest you add an id-attribute to your input-field and check 
> that tag with an RegExpression based on the ID.

MOR Solutions -  the complete web specialists.

w: www.morsolutions.com
t: 041 980 1000
f: 041 980 1001
a: Unit B201, An tSean Mhargadh, Green Lanes, Drogheda, Co. Louth

For Support: helpdesk@morsolutions.com
For Sales: sales@morsolutions.com

A member of the MIDAS Initiative, Creative and Digital Media Cluster - 

Winners LCEB Enterprise of the Year, 2003
Winners Best Innovation Drogheda Business Excellence Awards, 2006
Irish Motoring, www.irishmotoring.ie - Shortlisted for Golden Spider 
Award, 2006

MOR Solutions is the trading name of Maher O'Rourke Limited.
Company registered in Ireland No. 328973.
Registered office: Co. Louth, Ireland.