I\'m trying to log onto a webpage with python selenium. I\'ve found an element and it is enabled, but when I try to send_keys() to it I get an error. The main thing (I think)
You can use explicit waits:
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
element = WebDriverWait(driver, 10).until(
EC.presence_of_element_located((By.CLASSNAME, "inputUsername"))
)
...