Browser: Fill 2FA code

Fill a 2FA one-time code (OTP) into a field.

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

FieldRequiredWhat it does
XpathYesSelector for the OTP input field.
ByNoSelector strategy. Defaults to css. Choices: Xpath, Css, Id, Name, Class.
2FA credentialYesUUID of the 2FA (TOTP) vault credential.
EnsureNoVerify the code was entered correctly and retry if not.
ScrollNoScroll the field into view before typing.
Seconds left variableNoVariable that gets how many seconds the typed code had left. Empty when not known.
Least seconds leftNoA 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.

Get started

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or have your first automation working in 7 days.