Get started

Reference Workflows 06 / 06

Wait step

Pause for a duration or until a condition holds. 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 step pauses the run — for a fixed number of milliseconds, or until a condition such as a selector becoming visible or the URL matching a pattern. Prefer a condition over a fixed delay wherever possible.

In a workflow, this step is a JSON object with "type": "wait". 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.

value string
The duration in milliseconds, or the condition target (a selector or URL pattern).
condition string
What to wait for; a bare duration waits for time.

Example

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

Step
{
  "type": "wait",
  "config": { "value": "2000" }
}

How it behaves

  • Waiting for a condition is more robust than a fixed timeout.
  • Most steps already wait for their element, so bare time waits are rarely needed.

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