天道酬勤,学无止境

quora

Unable to login to Quora using Selenium webdriver in Python

I am using a Selenium module in Python to log into Quora. It works fine for Facebook, but I am getting an error on the send_keys('my_email') line while trying it on Quora: I am using the following script. from selenium import webdriver from selenium.webdriver.common.keys import Keys import time driver = webdriver.Firefox() driver.get('http://www.quora.com/') time.sleep(60) username = driver.find_element_by_name('email') time.sleep(60) username.send_keys('my_email') time.sleep(60) password = driver.find_element_by_name('password') time.sleep(60) password.send_keys('my_password') time.sleep(60)

2021-06-09 20:40:20    分类:问答    python   python-2.7   selenium   selenium-webdriver   quora