Get started

Reference Workflows 06 / 06

Click step

Click an element identified by a stable selector. A step a recorded Writ workflow can run, with its fields and an example.

Runs on Writ CloudWrit Desktop

Open in Claude Open in ChatGPT

The click step clicks a single element. The recorder captures a stable selector plus the element description and coordinates, so replay can re-find the element even when the page shifts slightly.

In a workflow, this step is a JSON object with "type": "click". Steps run in order, and each step can read the outputs of the steps before it.

Fields

Set these inside the step’s config object.

selector selector required
CSS or text selector for the target element.
description string
The recorded human-readable label of the element, used to re-find it if the selector goes stale.
coordinates object
Recorded {x, y} position, kept as a last-resort fallback.

Example

One click step, as it appears in the steps list of a workflow.

Step
{
  "type": "click",
  "config": { "selector": "button:has-text('Add to cart')" }
}

How it behaves

  • The element is scrolled into view and awaited before the click fires.
  • When a click opens a new tab, follow it with wait_for_tab.

Where it runs

The step runs wherever its workflow runs. On Writ Desktop, runs are free and can reach systems that only your own network can reach.

On Writ Cloud, each call costs credits: 20 when the run needs a browser, 2 when it does not. A call that fails because of the site or Writ costs nothing.

Next