问题
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