For the complete documentation index, see llms.txt. This page is also available as Markdown.

Test MFA login

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.

What you need

  • 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)

Save the MFA secret

1

Open MFA settings

Go to Settings → MFA.

2

Create an MFA entry

Choose Create, set a Title, and paste the MFA Secret.

Confirm the live code against your authenticator app, then save. You will not be able to view or edit the secret again after it is saved.

Build the login Flow

1

Open the sign-in page

Start with Open. Point it at your login URL.

Open Test Step
Open
2

Enter username and password

Add Set value for the username and password fields. Use Values from the Value Store.

Set value Test Step
Set value

Add Touch on the control that submits the password step.

Touch Test Step
Touch
3

Wait for the MFA field

When the code field appears, add a Wait or Check if your app needs a moment to show it.

4

Enter the MFA code

Add Set MFA.

Set MFA Test Step
Set MFA
  1. Set Mode to Saved.

  2. Choose the MFA Key you created under Settings.

  3. Choose the Element for the code input.

DoesQA generates a fresh time-based code and types it into that Element.

5

Finish sign-in

Add Touch on the control that submits the MFA step.

Add Check text or another Check that proves the session landed where you expect.

Check text Test Step
Check text

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

The finished Flow

Open through Check text for an MFA login Flow

Mode: Saved or New

Mode
Use it when

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