简体   繁体   中英

This browser or app may not be secure" error has appeared when i am trying to sign-in using selenium webdriver in java

错误

I have also turned on the less secure app from the account settings but facing the same problem.

You said that you want to login to Gmail. Unfortunately Google forbids using automated scripts for logging into Gmail.

To help protect your account, Google doesn't let you sign in from some browsers. Google might stop sign-ins from browsers that:

  • Don't support JavaScript or have JavaScript turned off
  • Have unsecure or unsupported extensions added
  • Are being controlled through software automation rather than a human
  • Are embedded in a different application

See: https://support.google.com/accounts/answer/7675428?hl=en

You have to use their API if you want to automate Gmail.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM