TestProject Forum
Powered by leading experts in the test automation community

Waiting For A Verification Code

Hello All! Can anybody tell me how to handle this 2fa authorization scenario? Basically, when I get to this page, I have to input a 6 digit verification code that I get from my mobile device via Messages. I’m thinking that I need to wait for the input, but how do I implement this? This is for testing a website.

Hello @patricia.yasechko.

We currently support 2FA with Google Authenticator:

Usually, this requirement is disabled for automation, and since you’re most likely creating a web test, you will not be able to simultaneously get the message that is being sent during it from your mobile device (which would require creating a mobile test and using the get OTP actions to retrieve the message).

Please consider using a pre-known code as a parameter instead.