title: Find elements by input type
body: <p>I'm trying Python and Selenium. My goal is to log myself into Discord (<a href="https://discordapp.com/login" rel="nofollow noreferrer">https://discordapp.com/login</a>. But here is the problem. I can't manage to get the email and password box selected. But the worst part is trying to select a textbox on a server... I tried everything, even locating by XPath, but I can't seem to do it right. Also, doing it on ATOM is probably not the best idea since I don't get any error messages :P. Here is a snippet to select the email textbox.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>from selenium
  import webdriver
  from selenium.webdriver.common.keys
  import Keys
  
  browser = webdriver.Firefox()
  
  browser.get('https://discordapp.com/login')
  assert 'discordapp' in browser.title
  
  elem = browser.find_element_by_name('textarea')# this is the part where i need help
  elem.send_keys('test' + Keys.ENTER)</code></pre>
  </div>
  </div>
  </p>
  
  <p><a href="https://i.stack.imgur.com/PkGmf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PkGmf.png" alt="The Sourcecode"></a></p>