Check if an element is displayed
Easy30 pts~12 min
- Visibility
- isDisplayed
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 an element is present but hidden, then displayed after revealing it.
Your task
- 1Open TEST_URL.
- 2Assert
#hidden-panelexists but is not displayed. - 3Click
#reveal-button. - 4Assert
#hidden-panelis displayed and reads “Advanced settings”.
Acceptance criteria
- isDisplayed is used
#hidden-panelis visible at the end- At least 2 assertions pass
Selenium WebDriver 4 · QA Automation · Interactions