使用代码时:
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
import time
options = Options()
options.add_argument('start-maximized')
options.add_argument('disable-infobars')
options.add_argument('--disable-extentions')
driver = webdriver.Chrome(chrome_options=options)
driver.get('https://www.quora.com')
user = driver.find_element_by_name('email')
user.clear()
user.send_keys('username')
password = driver.find_element_by_name('password')
password.clear()
password.send_keys('password')
driver.close()
我收到以下错误:
invalid element state: Element is not currently interactable and may not be manipulated
我认为Quora已经停止了与登录框的自动交互。请解释如何使用selenium或任何其他python库自动登录Quora。