In my project I need to test the user login via Google, but I can't solve the problem "This browser or app may not be secure" when I enter the email.
The test steps are simple:
- I click on the Google option in the login screen
- The Google pop-up window opens
- I enter my email and password and click the login button
- I confirm that the pop-up closes and I find myself in a login confirmation screen
I have tried all the different solutions proposed in other stack overflows but none of them work for me in 2023. I've tried loading profiles and they load perfectly, I've tried all sorts of Chrome options, I've tried touching everything possible in the Google user settings, I've tried logging in from a specific link.
The only solution I have seen that probably works is to login with oauth2 but I don't know exactly how to do it. I know google offers us an API and I know how to get with it the token needed for the oauth2 but I don't know how to add this in the steps mentioned above. What I need to do after the Google pop-up opens and before I get the login confirmation screen.