Skip to main content
Element Handle state checks methods for the Playwright driver.

isVisible

Check if the element is visible.
Returns true if element is visible. Non-attached elements return false. Discouraged in favor of locator.isVisible().
Upstream docs
result
boolean
Return value
await element.isVisible();

isHidden

Check if the element is hidden.
Returns true if element is hidden. Non-attached elements return true. Discouraged in favor of locator.isHidden().
Upstream docs
result
boolean
Return value
await element.isHidden();

isEnabled

Check if the element is enabled.
Discouraged in favor of locator.isEnabled().
Upstream docs
result
boolean
Return value
await element.isEnabled();

isDisabled

Check if the element is disabled.
Discouraged in favor of locator.isDisabled().
Upstream docs
result
boolean
Return value
await element.isDisabled();

isChecked

Check if a checkbox or radio is checked.
Throws if element is not a checkbox or radio. Discouraged in favor of locator.isChecked().
Upstream docs
result
boolean
Return value
await element.isChecked();

isEditable

Check if the element is editable.
Discouraged in favor of locator.isEditable().
Upstream docs
result
boolean
Return value
await element.isEditable();