Actions15
- Session Actions
- Page Actions
- Script Actions
Page → Get HTML
AI-generatedSummary
Retrieve HTML content from a page or a specific element.
Inputs
- sessionId (required) — The identifier of the browser session whose page to operate on.
- selector (required) — CSS or XPath selector. Providing one returns the element's inner HTML; using an empty string returns the full page HTML.
Output shape
object
Returns the HTML extraction result as produced by the node's internal
getHTMLimplementation.