title: How do I fill out a form using Python and Selenium?
body: <p>I am new to Python and wanted to use it for automatic login. I found <a href="https://automatetheboringstuff.com/chapter11/" rel="nofollow noreferrer">https://automatetheboringstuff.com/chapter11/</a> and tried:</p>
  
  <pre><code>#! python3
  from selenium import webdriver
  browser = webdriver.Firefox()
  type(browser)
  browser.get('https://forum-studienstiftung.de/')
  emailEl = browser.find_element_by_id(username)
  </code></pre>
  
  <p>Unfortunately, this leads to:</p>
  
  <blockquote>
    <p>Traceback (most recent call last): File "", line 1, in
     emailEl = browser.find_element_by_id(username) NameError:
    name 'username' is not defined</p>
  </blockquote>
  
  <p>According to the Firefox Developer Tools the correct ID is "username".</p>