No results for

Powered byAlgolia

isEnabled([options])

Checks if the element is enabled.

ParameterTypeDefaultDescription
options
objectnull

Returns

TypeDescription
booltrue if the element is enabled, else false.

Example

page
.goto('https://test.k6.io/browser.php')
.then(() => {
const text = page.locator('#text1');
if (text.isEnabled()) {
console.log("element is enabled");
}
});