How to handle browser or app may not be secure issue with web driver Selenium python?

Abhishek Boorugu picture Abhishek Boorugu · Dec 17, 2019 · Viewed 8.8k times · Source

I'm trying to automate sign in into gmail and I get to see this error.

enter image description here

I think this must be because the website is able to detect the automation and blocking it. Can you all please tell me how to overcome this? I don't see this issue with my personal account but this happens only with a common account.

Answer

Abhishek Boorugu picture Abhishek Boorugu · Dec 19, 2019

This issue was because of the selenium chrome profile. I have created a new chrome profile and logged into it with the email id with which I was facing this issue. Then Turn on sync.

With this chrome profile in place I can skip the login steps and directly do the main process. Use: Chrome Options to add newly created chrome profile as an argument.

Hope this helps people who are facing similar challenge.