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

与世无争的帅哥 提交于 2021-02-04 16:08:00

问题


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

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.


回答1:


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.




回答2:


I faced this issue. I have created dummy gmail account and now my selenium script is working fine for the same and able to login successfully.

it's not working for my personal gmail account.

Thanks !!




回答3:


In you account profile, in Security options, try setting this option:



来源:https://stackoverflow.com/questions/59380356/how-to-handle-browser-or-app-may-not-be-secure-issue-with-web-driver-selenium-py

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!