Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 1 dislike
556 views
by (6 points)
edited by
Hi Guys,

Anyone here has experience writing selenium-webdriver tests for login scenario thats uses google signin but has 2 factor authentication enabled?

Best Regards,
by The go-to Tester (181 points)
You are trying to ask someone to show you their code. This QnA site is used for resolving technical issues. Kindly try your code first and you can post errors and challenges you are facing.

1 Answer

2 like 0 dislike
by The go-to Tester (115 points)
It mostly depends on whether you have access to both authentication server and authenticated client.
 
You can automate OTP using email. But it required either own email server or email account on a real server,Eg: Gmail/ yahoo.

It is possible to automate OTP via SMS by using google voice and redirecting SMS into your email address.

If your requirements is to set up a word for questions, then just pass that word for which question is asked.
...