Playwright Automation icon

Playwright Automation

Playwright Automation for n8n

Page → Get HTML

AI-generated

Summary

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 getHTML implementation.

Links

Discussion