Test MFA login
Automate a login that asks for a time-based MFA code.
Last updated
Automate a login that asks for a time-based MFA code.
Many apps ask for a one-time code after the password. DoesQA can generate that code from a saved MFA secret and type it into the page, so the Flow can finish sign-in without a phone.
Use the Flow Builder for this walkthrough.
A website URL with MFA on login
Username and password Values
The MFA secret for that account (the same secret you would scan into an authenticator app)
Go to Settings → MFA.
Add Set value for the username and password fields. Use Values from the Value Store.

Add Touch on the control that submits the password step.

Add Set MFA.

Set Mode to Saved.
Choose the MFA Key you created under Settings.
Choose the Element for the code input.
DoesQA generates a fresh time-based code and types it into that Element.
Add Touch on the control that submits the MFA step.
Add Check text or another Check that proves the session landed where you expect.

Pro tip: After the login works, save it as a Step Group so other Flows can reuse the same MFA path.

Saved
The secret lives under Settings → MFA (usual path)
New
You need to pass a secret only for this step
Prefer Saved so secrets stay in one place and Flows stay easy to share.
Last updated