def wait(xpath):
return WebDriverWait(driver, 10).until(EC.presence_of_element_located((By.XPATH, xpath)))
def find(xpath):
try:
element = wait(xpath)
except:
driver.quit()
element = driver.find_element(By.XPATH, xpath)
return element
mail = find('//*[@id="identifierId"]')
mail.clear()
mail.send_keys('<the email>')
mail_next = find('//*[@id="identifierNext"]')
mail_next.click()
password = find('//*[@id="password"]/div[1]/div/div[1]/input')
password.clear()
password.send_keys('<the passwwordD>')
password_next = find('//*[@id="passwordNext"]')
password_next.click()
Ошибка: "Элемент входного класса =" whsOnd zHQkBf "name =" пароль "type =" пароль "не может быть прокручен в представлении"