Get started

Reference Workflows 06 / 06

Wait for change step

Wait until watched page content changes. 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 wait_for_change step blocks until the watched region updates — after a filter applies, a sort re-renders, or new results stream in — so the next step reads fresh state.

In a workflow, this step is a JSON object with "type": "wait_for_change". 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
The region to watch for a change; the page when omitted.

Example

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

Step
{
  "type": "wait_for_change",
  "config": { "selector": "#results" }
}

How it behaves

  • Ideal after applying a filter or sort that re-renders a list.
  • Pairs with scroll to wait until lazy items have loaded.

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