I have automated tests of UI with Selenium, The first step is to enter a Google account (username and password, the account does not require anything else). These tests run well on my personal computer, but when I try to run them on a virtual machine in Compute Engine with chrome / firefox etc. After entering email and password, Google returns the following message:
"For your protection, you can't sign in from this device. Try again later, or sign in from another device."
Additional notes:
I have already tried several accounts; Gmail (personal / standard and with G Suite) and the same thing happens (Selenium + Compute Engine)
In Compute Engine machines I can enter traditionally / manually well,no problem. The problem arises when I run the script with Selenum (webdrive chrome and firefox).
The OS Centos 7 + xfce, selenium node js
UserAgent: "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.87 Safari/537.36"
I attach the image, I appreciate any help.
ssh -D 9090 -C -q -N userserver@iphostserver
2. I configure the chrome/firefox browser proxy (with web-driver) 3. User login and password, and I get the same result (now ask captcha) > Note (1): Nested virtualization is same problem (Virtualbox in GCE) > Note (2): In AWS it works correctly. – Oscar Oswaldo Ortiz Perez