title: Python selenium - AttributeError: 'dict' object has no attribute 'get_attribute'
body: <p>I wanted to showcase selenium and instead of starting a complete Java / C# suite I wanted to quickly use Python since it can be done with a single script.</p>
  <pre><code>from selenium import webdriver
  import time
  from selenium.webdriver.common.keys import Keys
  from selenium.webdriver.common.by import By
  
  print(&quot;sample test case started&quot;)
  driver = webdriver.Chrome()
  driver.maximize_window()
  driver.get(&quot;MyUrl&quot;)
  element = driver.find_element(By.ID, &quot;Username&quot;)
  element.send_keys(&quot;MyUsername&quot;)
  
  driver.close()
  print(&quot;sample test case successfully completed&quot;)
  </code></pre>
  <p>I am getting this error message:
  <code>AttributeError: 'dict' object has no attribute 'send_keys'</code></p>
  <p>I would seam that find_element method is returning some kind of dict (Dictonary??) object instead of a selenium web element. How can I fix this??</p>