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

isDetached

Returns true if the frame has been detached, or false otherwise. Upstream docs
result
boolean
Return value
await frame.isDetached();

isChecked

Returns whether the element is checked.
Throws if the element is not a checkbox or radio input. Discouraged: use locator-based locator.isChecked() instead.
Upstream docs
selector
string
required
options
PlaywrightIsOptions
result
boolean
Return value
await frame.isChecked('...');

isDisabled

Returns whether the element is disabled.
Discouraged: use locator-based locator.isDisabled() instead.
Upstream docs
selector
string
required
options
PlaywrightIsOptions
result
boolean
Return value
await frame.isDisabled('...');

isEditable

Returns whether the element is editable.
Discouraged: use locator-based locator.isEditable() instead.
Upstream docs
selector
string
required
options
PlaywrightIsOptions
result
boolean
Return value
await frame.isEditable('...');

isEnabled

Returns whether the element is enabled.
Discouraged: use locator-based locator.isEnabled() instead.
Upstream docs
selector
string
required
options
PlaywrightIsOptions
result
boolean
Return value
await frame.isEnabled('...');

isHidden

Returns whether the element is hidden.
Opposite of isVisible(). Discouraged: use locator-based locator.isHidden() instead.
Upstream docs
selector
string
required
options
PlaywrightIsOptions
result
boolean
Return value
await frame.isHidden('...');

isVisible

Returns whether the element is visible.
Element is considered visible if it has non-zero bounding box and is not visibility:hidden. Discouraged: use locator-based locator.isVisible() instead.
Upstream docs
selector
string
required
options
PlaywrightIsOptions
result
boolean
Return value
await frame.isVisible('...');