Checks if the element is editable.
page .goto('https://test.k6.io/browser.php') .then(() => { const text = page.locator('#text1'); if (text.isEditable()) { text.fill("hello world!"); } });