Read an attribute value
Easy30 pts~12 min
- Attributes
- ARIA
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
Assert on attributes that are not visible text.
Your task
- 1Open TEST_URL.
- 2Assert
#avatarhas alt “Profile avatar” and data-role “avatar”. - 3Assert
#reveal-buttonhas aria-expanded “false”, click it, then assert “true”. - 4Assert
#hidden-panelis now displayed.
Acceptance criteria
- getAttribute is used
#hidden-panelis visible- At least 3 assertions pass
Selenium WebDriver 4 · Selenium · Interactions