Spotted something off?Report on Discord
guides

Click Action

Simulate a click on a specific page element inside a real browser session using a CSS selector or XPath.

Updated May 28, 2025

Simulate a click on a specific element on a webpage using a CSS selector or XPath within a browser session.

Command

"click"

One of the browser actions β€” combine it with type, dropdown, and keyboard actions to drive a full interaction.

Parameters

Parameter Type Required Description
cssSelector string Yes CSS selector or XPath of the element to click.
wait number No Wait for X seconds after clicking.
waitForSelector string No Wait for a specific element to appear after the click.
when string No Lifecycle phase to run the action: beforelaunch, beforeload, or afterload. Default is afterload.
ignoreErrors boolean No Set to true to continue even if an error occurs.

Example

bash12 lines
Want to run this request directly in your browser?to try it live with your own API key.

Go deeper in the Scrappey knowledge base: