How to use selenium sending keys to the hideNameInput?
<p>Below is the HTML elements, I want input something into the span <code>id=&quot;nameNoteId&quot;</code>.</p>
<pre><code>&lt;span onclick=&quot;hideNameInput()&quot; id=&quot;nameNoteId&quot;&gt;Username&lt;/span&gt;
</code></pre>
<p>Below is the codes.</p>
<pre><code>from selenium import webdriver
from selenium.webdriver.common.keys import Keys

url = 'http://passport2.chaoxing.com/login?fid=1479&amp;refer=http://i.mooc.chaoxing.com'

# driver = webdriver.PhantomJS()
driver = webdriver.Firefox()
driver.get(url)
elem = driver.find_element_by_id('passwordId')
elem.send_keys('something')
not_work_elem = driver.find_element_by_id('nameNoteId')
not_work_elem.click()
not_work_elem.send_keys('test')

driver.close()
</code></pre>