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