New to Telerik Test Studio? Download free 30-day trial

Disabled Attribute

The disabled attribute can be rendered differently based on browser. Here are three ways to indicate a Submit button is disabled:

//Method 1
<input type="submit" value="Submit" disabled />

//Method 2
<input type="submit" value="Submit" disabled="" />

//Method 3
<input type="submit" value="Submit" disabled="disabled" />

Submit

Build an Advanced Verification so the step passes no matter how the browser renders the HTML:

Verification

Based on "Content", verify that the "OuterMarkup" "Contains" the word "disabled".

To verify an element is enabled (not disabled), change the second drop-down to "NotContain".

For more information, please read our KB article on How to Verify the Disabled Attribute (HTML).

See Also

In this article