title: Send keys without specifying element in python selenium webdriver (action chains did not work)
body: <p>I have a script in which I click a button and the cursor begins blinking. All my attempts at specifying the element via xpath/id/class name to send the keys from have failed. So, I am attempting to just send the keys to where the cursor is blinking.</p>
  
  <p>I've tried a few solutions:</p>
  
  <ol>
  <li><a href="https://stackoverflow.com/questions/32886927/send-keys-without-specifying-element-in-python-selenium-webdriver">Send keys without specifying element in python selenium webdriver</a></li>
  </ol>
  
  <pre><code>from selenium.webdriver.common.action_chains import ActionChains
  
  actions = ActionChains(driver)
  actions.send_keys('dummydata')
  actions.perform()
  </code></pre>
  
  <p>This solution did not send any keys at all.</p>
  
  <ol start="2">
  <li>Switch to the active element.</li>
  </ol>
  
  <pre><code>elem = driver.switch_to.active_element()
  elem['value'].send_keys('dummydata')
  #OR#
  elem.send_keys('dummydata')
  </code></pre>
  
  <p>In this instance, I received error:</p>
  
  <pre><code>elem = driver.switch_to.active_element()
  TypeError: 'WebElement' object is not callable
  </code></pre>
  
  <p>Not sure what else to try at this point. Baffled at why this is happening.</p>