title: How to send text within the Username field using Python Selenium
body: <p>I've been watching youtube videos, but cant seem to get the following to work using the &quot;class method&quot;.</p>
  <pre><code>from selenium import webdriver 
  from selenium.webdriver.chrome.options import Options
  from selenium.webdriver.chrome.service import Service
  from webdriver_manager.chrome import ChromeDriverManager
  
  options = Options() options.add_experimental_option(&quot;detach&quot;, True)
  driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()), options=options)
  driver.get(&quot;https://sharemydata.pge.com/#login&quot;)
  driver.find_element_by_class_name('input-username').send_keys('david@gmail.com')
  </code></pre>
  <p><a href="https://www.youtube.com/watch?v=rj5zfP3ktgE" rel="nofollow noreferrer">https://www.youtube.com/watch?v=rj5zfP3ktgE</a>
  I watched this guys yt page, but his method byclass name does not seem to work for me. I can only seem to get as far as opening the page.</p>
  <p>I also tried this,</p>
  <pre><code>driver.find_element_by_xpath(&quot;//input[@type='email']&quot;).send_keys(&quot;david@gmail.com&quot;)
  </code></pre>