Reference Workflows 06 / 06
Wait for tab step
Wait for a new tab to open, then switch to it. A step a recorded Writ workflow can run, with its fields and an example.
On this page
The wait_for_tab step pauses until a new tab appears — typically opened by the preceding click — and then makes that tab active.
In a workflow, this step is a JSON object with "type": "wait_for_tab". Steps run in order, and each step can read the outputs of the steps before it.
Fields
This step takes no fields. Its config object stays empty.
Example
One wait_for_tab step, as it appears in the steps list of a workflow.
{
"type": "wait_for_tab",
"config": {}
} How it behaves
- Place it immediately after the click that opens the tab.
- If no tab opens 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.
Related steps
- Open tab
open_tabOpen a new browser tab, optionally at a URL. - Switch tab
switch_tabMake a different open tab the active one. - Click
clickClick an element identified by a stable selector.
Next
- 01 All workflow steps The full step list, grouped by family.
- 02 Record a workflow Show Writ the clicks once in a real browser, then replay them with new inputs on demand or on a schedule.
- 03 Call your API Run an API over REST from any language: endpoints, keys, waiting for results, caching and responses.
- 04 Credits and plans What each call, page and check costs in credits, what plans include, and what happens at zero.