Block reference / General

Delay

Pauses the run for a set number of milliseconds, or a random time in a range, before the next block.

In both appsWarpX BrowserWarpX Phone

Use Delay when a page needs time to settle before the next step, or when you want a pause between actions so a run does not move at machine speed. The run waits for the time you set, or for a random time in a range with Random delay on, then carries on to the next block.

The Delay block's settings, filled in as in the example below.

Settings

Description

A note shown under the block's name on the canvas. It has no effect on the run.

ExampleLet the results load
Random delay

Waits a different time each time the block runs, anywhere from From to To. Off, the block waits the same Delay time every time.

ExampleUnchecked
Delay time (millisecond)when Random delay is off

How long to wait, in milliseconds. 2500 is two and a half seconds. You can also use a reference such as {{variables.pauseMs}}.

Example2500
From (millisecond)when Random delay is on

The shortest wait, in milliseconds. It can be a reference such as {{variables.minPause}}.

Example1500
To (millisecond)when Random delay is on

The longest wait, in milliseconds. Both ends are included, and they may be given either way round: 4000 to 1500 is the same range as 1500 to 4000.

Example4000

Every block also has the shared block settings — a description, Disable block and what to do on an error. Fields that take text accept data from earlier blocks.

What it hands on

Nothing. The block leaves by its single output once the time is up.

Example: Wait for search results before clicking the first one

  1. Start
  2. Open URL
  3. Delay
  4. Click element
Where Delay sits in the example workflow.
  1. Add an Open URL block that opens the search page.
  2. Drag a Delay block after it and double-click it.
  3. Set Delay time (millisecond) to 2500.
  4. Connect it to a Click element block that clicks the first result.
  5. Click Execute to run the workflow on the selected profile.

Good to know

  • Delay time takes a single whole number. An empty value, 0, or anything that is not a number, such as 1000,3000, waits 500 milliseconds instead. For a range, tick Random delay.
  • With Random delay on, a new time is picked every time the block runs, so a Delay inside a loop waits a different time on each pass. An empty From or To, or one that is not a number, counts as 0, not 500.
  • A pause of exactly the same length between every action is itself a pattern a site can notice. Random delay avoids it without a Random block.
  • A fixed delay is a guess. When you are waiting for something on the page, a block's own wait-for-selector option is usually more reliable.

See also

  • Random — Generate a fake name, email, number or other value and store it in a variable.
  • Wait connections — Holds branches that run side by side until they have all arrived.
  • Element exists — Check whether an element is on the page and continue by one of two outputs.