Get started

Reference Workflows 06 / 06

Wait for download step

Wait for a file download to complete and capture the file. 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_download step waits for the browser to finish a download and captures the file as a run artifact. It can optionally click the element that triggers the download itself.

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

trigger_selector selector
Optional element to click inside the wait to start the download.
output_key string
Name for the captured file so later steps or workflows can reuse it as {{file:…}}.

Example

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

Step
{
  "type": "wait_for_download",
  "config": { "trigger_selector": "a.export-csv", "output_key": "report" }
}

How it behaves

  • The captured file is stored with the run and can feed a later upload step.
  • If no download starts within the timeout, the step fails with a clear message.

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