Help Centre › Building Processes
Fill a 2FA one-time code (OTP) into a field.
Add it to a process
In the process designer, open the Add step tab. Find Fill 2FA code under Browser, or type its name in the search box, and drag it onto the canvas.
Fields
| Field | Required | What it does |
|---|---|---|
| Xpath | Yes | Selector for the OTP input field. |
| By | No | Selector strategy. Defaults to css. Choices: Xpath, Css, Id, Name, Class. |
| 2FA credential | Yes | UUID of the 2FA (TOTP) vault credential. |
| Ensure | No | Verify the code was entered correctly and retry if not. |
| Scroll | No | Scroll the field into view before typing. |
| Seconds left variable | No | Variable that gets how many seconds the typed code had left. Empty when not known. |
| Least seconds left | No | A code with this many seconds or fewer left is not typed; the bot waits for the next code. Default 5. A code lasts 30 seconds, so at most 25. |
What it gives back
{otpSecondsLeft}– Seconds the typed code had left when it was got; empty when not known.
See all Browser steps.