Selenium WebDriver 4

Check if an element is enabled

Easy30 pts~12 min
  • Element state
  • isEnabled
Practice app · Profile Settings

A settings page for clicking, typing, reading text/attributes/CSS and element state.

Test URL
/lab/selenium-check-if-an-element-is-enabled

Your starter code already declares TEST_URL — never hardcode a host.

Objective

Distinguish a disabled control from an enabled one before interacting.

Your task

  1. 1Open TEST_URL.
  2. 2Assert #disabled-button is not enabled.
  3. 3Assert #save-button is enabled, then click it.
  4. 4Assert #save-status shows “Profile saved”.

Acceptance criteria

  • isEnabled is used
  • #save-status is visible
  • At least 3 assertions pass

Selenium WebDriver 4 · Selenium · Interactions