I'm using a bit of code from a related question
username = driver.find_element_by_name("username")
username.send_keys("username")
I looked at the source code for the login page, and saw: HTML snippet
However, I'm getting errors for both username = driver.find_element_by_name("Email") and username = driver.find_element_by_name("ember442")
The error says:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/anaconda/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 385, in find_element_by_name
return self.find_element(by=By.NAME, value=name)
File "/anaconda/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 791, in find_element
'value': value})['value']
File "/anaconda/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 256, in execute
self.error_handler.check_response(response)
File "/anaconda/lib/python3.6/site-packages/selenium/webdriver/remote/errorhandler.py", line 194, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"name","selector":"Email"}
What am I doing wrong here? My only other thought would be to use one of the other commands for locating elements (find_element_by_id, find_element_by_name, find_element_by_xpath, find_element_by_link_text, find_element_by_partial_link_text, find_element_by_tag_name, find_element_by_class_name, find_element_by_css_selector) but those don't seem to work either.