Playwright Automation icon

Playwright Automation

Playwright Automation for n8n

Page → Click

AI-generated

Summary

Click an element on the page using a CSS or XPath selector.

Inputs

  • sessionId (required) — Identifier of the browser session to use.
  • selector (required) — CSS or XPath selector targeting the element to click.
  • screenshotOnFail — Whether to capture and attach a screenshot if the click fails and attach it to the error.

Output shape

object

The JSON result from the underlying page.click() action: { success: true, action: 'click', selector }.

Links

Discussion