Returns the element.textContent.
page .goto('https://test.k6.io/browser.php') .then(() => { const options = page.locator("#checkbox1"); console.log(options.textContent()); /* Zero One Two Three Four Five */ });