Skip to main content
Page content methods for the Puppeteer driver.

textContent

Get the text content of an element matching the selector.
selector
string
required
result
string | null
Return value
await page.textContent('...');

innerHTML

Get the inner HTML of an element matching the selector.
selector
string
required
result
string
Return value
await page.innerHTML('...');