Skip to main content
BCTRL home page
v1
Search...
⌘K
Support
Dashboard
Dashboard
Search...
Navigation
Page
Content
Home
SDK Reference
API Reference
Pricing
Cookbook
Changelog
GitHub
Discord
SDK API (HTTP)
SDK Reference
Sessions
Profiles
Session Features
Session Events
Vault
Storage
Extensions
Discover
Browser Automation
Playwright
Puppeteer
Page
Navigation
Page Info
Actions
Queries
Content
State Checks
Waiting
Screenshots & PDF
Evaluation
Cookies
Lifecycle
Other
Mouse
Keyboard
Touchscreen
Frame
Element Handle
Puppeteer Locator
Stagehand
On this page
textContent
innerHTML
Page
Content
Copy page
Puppeteer Page — content methods
Copy page
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
SDK
HTTP
Copy
await
page
.
textContent
(
'...'
);
innerHTML
Get the inner HTML of an element matching the selector.
selector
string
required
result
string
Return value
SDK
HTTP
Copy
await
page
.
innerHTML
(
'...'
);
Queries
State Checks
⌘I