简体   繁体   English

如何在 C# selenium 测试中处理 MFA

[英]how to handle MFA in C# selenium testing

Below are the steps to over come:以下是要完成的步骤:

  1. Browser is asking for email address浏览器要求 email 地址
  2. Once I input and click next, it is taking me to a new browser where I have to select Phone or SMS options.一旦我输入并单击下一步,它会将我带到一个新的浏览器,我必须在其中找到 select 电话或短信选项。
  3. Once I select SMS option, it is asking me to input the key一旦我 select SMS 选项,它要求我输入密钥
  4. Once I input key, it is validating and taking me to application home page.一旦我输入密钥,它就会验证并将我带到应用程序主页。

I would suggest disabling the MFA for the account, or whitelist the account so that it would be always the same key.我建议禁用该帐户的 MFA,或将该帐户列入白名单,以便它始终是相同的密钥。 Anyway, this has nothing to do with Selenium but you need to change the AUT to meet these requirements.无论如何,这与 Selenium 无关,但您需要更改 AUT 以满足这些要求。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM