Unable to login to Quora using Selenium webdriver in Python

时光毁灭记忆、已成空白 提交于 2019-12-04 13:49:44

The problem is that there are multiple inputs with name="email".

You need the one in the "Regular Login" section:

form = driver.find_element_by_class_name('regular_login')
username = form.find_element_by_name('email')
username.send_keys('my_email')

password = form.find_element_by_name('password')
password.send_keys('my_password')
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!