无法使用 Selenium 和 Python 在 ProtonMail 注册页面的用户名字段中输入 [英] Unable to type within username field within ProtonMail signup page using Selenium and Python

查看:30
本文介绍了无法使用 Selenium 和 Python 在 ProtonMail 注册页面的用户名字段中输入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我正在尝试使用 Selenium 和 Python 为网站

我的代码如下:

BASE_URL = 'https://mail.protonmail.com/create/new?language=en'driver = webdriver.Chrome(executable_path='./drivers/chromedriver')driver.get(BASE_URL)river.find_element_by_xpath('//*[@id="username"]').send_keys('someStringValue')

执行以下代码后,出现错误:

selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//*[@id="username"]"}(会话信息:chrome=83.0.4103.97)

有什么建议吗?

解决方案

Email Address 字段位于