No results for

Powered byAlgolia

innerHTML([options])

Returns the element.innerHTML.

ParameterTypeDefaultDescription
options
objectnull

Returns

TypeDescription
stringThe innerHTML of the element.

Example

page.goto('https://test.k6.io/browser.php');
const offScreen = page.locator('#off-screen');
const innerHTML = offScreen.innerHTML();
console.log(innerHTML);