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