Read a CSS property value
Medium70 pts~25 min
- CSS values
- Visual state
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
Verify styling by reading a computed CSS property.
Your task
- 1Open TEST_URL.
- 2Read the computed
colorof#status-badge. - 3Assert it represents rgb(10, 118, 83).
- 4Assert the badge text is “Active”.
Acceptance criteria
- getCssValue is used
#status-badgeis visible- At least 2 assertions pass
Selenium WebDriver 4 · Selenium · Interactions