I made selenium script to log in into google account but i am getting 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 try again to sign in. My code:
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
print('Enter the gmailid and password')
gmailId, passWord = map(str, input().split())
driver = webdriver.Chrome(ChromeDriverManager().install())
driver.get(r'https://accounts.google.com/signin/v2/identifier?continue='+\
'https%3A%2F%2Fmail.google.com%2Fmail%2F&service=mail&sacu=1&rip=1'+\
'&flowName=GlifWebSignIn&flowEntry = ServiceLogin')
driver.implicitly_wait(15)
loginBox = driver.find_element("xpath",'//*[@id ="identifierId"]')
loginBox.send_keys(gmailId)
nextButton = driver.find_elements("xpath", '//*[@id ="identifierNext"]')
nextButton[0].click()
passWordBox = driver.find_element("xpath",
'//*[@id ="password"]/div[1]/div / div[1]/input')
passWordBox.send_keys(passWord)
nextButton = driver.find_elements("xpath", '//*[@id ="passwordNext"]')
nextButton[0].click()
print('Login Successful...!!')