I've been trying to log into my google account using selenium but once I pass in the email and hit enter it redirects to the following message
"This browser or app may not be secure. Learn more Try using a different browser. If you’re already using a supported browser, you can refresh your screen and try again to sign in."
Here is my python code:
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
options = webdriver.ChromeOptions()
options.add_argument("--enable-javascript")
driver = webdriver.Chrome(executable_path='path/to/chrome/driver',chrome_options = options)
url = "https://accounts.google.com/signin"
driver.get(url)
username = 'email'
password = 'password'
email_phone = driver.find_element_by_id('identifierId')
email_phone.send_keys(username)
email_phone.send_keys(Keys.RETURN)
email_phone = driver.find_element_by_id('password')
email_phone.send_keys(password)
email_phone.send_keys(Keys.RETURN)
please note that I'm new to python and selenium. I would very much appreciate your help. Thank you in advance
I have tried to use the methods described in Selenium Google Login Block but it still gave me the same message