I'm trying to log into a site using selenium but I come across this issue. After entering the username when the script is supposed to enter the password, that page appears. When I do the same manually in chrome browser, I get success.
I've tried with:
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
link = 'https://merchants.google.com/mc/default?hl=en&fmp=1&utm_id=gfr&mcsubid=us-en-z-g-mc-gfr'
username = "your_gmail_id"
password = "your_password"
driver = webdriver.Chrome()
wait = WebDriverWait(driver, 10)
driver.get(link)
wait.until(EC.presence_of_element_located((By.CSS_SELECTOR,"input#identifierId"))).send_keys(username)
wait.until(EC.presence_of_element_located((By.CSS_SELECTOR,"#identifierNext"))).click()
wait.until(EC.presence_of_element_located((By.CSS_SELECTOR,"input[aria-label='Enter your password']"))).send_keys(password)
How can I get rid of that barrier?
