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.
Your starter code already declares TEST_URL — never hardcode a host.
Objective
Distinguish a disabled control from an enabled one before interacting.
Your task
- 1Open TEST_URL.
- 2Assert
#disabled-buttonis not enabled. - 3Assert
#save-buttonis enabled, then click it. - 4Assert
#save-statusshows “Profile saved”.
Acceptance criteria
- isEnabled is used
#save-statusis visible- At least 3 assertions pass
Selenium WebDriver 4 · QA Automation · Interactions