Back to Course
Selenium WebDriver

Validation Commands: isSelected, isEnabled, isDisplayed

isSelected()

Returns true if a checkbox, radio button, or option is currently selected/checked.

isEnabled()

Returns true if an element (like a button) is enabled and can be interacted with, as opposed to being disabled/grayed out.

isDisplayed()

Returns true if an element is visible on the page, as opposed to hidden or not rendered.

Why Testers Use These

These checks are commonly used before interacting with an element (to avoid errors clicking something disabled or invisible) and as direct assertions verifying UI state.

Ready to master real-world software testing?

Learn manual and automation testing hands-on with mentor-led sessions.

Explore Course