No results for

Powered byAlgolia

isDisabled([options])

Checks if the element is disabled.

ParameterTypeDefaultDescription
options
objectnull

Returns

TypeDescription
booltrue if the element is disabled, else false.

Example

page.goto('https://test.k6.io/browser.php');
const text = page.locator('#input-text-disabled');
if (text.isDisabled()) {
console.log("element is disabled")
}