Skip to main content

How to verify the disabled button?

Verify

To Disabled Buttons in Scenario Editor

Verify disabled buttons when the test objective includes validation rules, permissions, workflow state, or required input behavior.

  • Check the control state after the page or form is stable.
  • Validate why the button is disabled when the business rule matters.
  • Avoid relying only on color if an attribute or state is available.
  • Include a positive check that the button becomes enabled when required fields are valid.

Validation workflow

  1. Navigate to the state where the button should be disabled.
  2. Wait for validation or page updates to finish.
  3. Assertverify the disabled statebutton throughwhere aXML stablesyntax propertyis orlike behavior.
  4. Enterbelow: valid

    <button datatype="button" anddisabled>Add confirmComment</button>

    Use the statebelow changescode whento appropriate.

verify disabled:

Last updated: SeptemberJune 20,26, 20262023

If you have any feedback on this topic, please contact us at documentation@appvance.ai