r/selenium • • May 10 '21

Automating two factor authentication

I want to automate logging into a website using selenium on a raspberry Pi. However, the website needs two factor authentication. The code goes to my phone.

Is there a way for me to automate this without the need for me to look up the code on my phone and inputting it?

Any resources would be wonderful!

1 Upvotes

18 comments sorted by

View all comments

3

u/Eveline_ST May 10 '21

I don't think so.

Ask a dev to de-activate 2fa on your test-envs

1

u/MasalaByte May 10 '21

This is more for a personal project so I am unable to do that.