title: python, selecting a textbox with selenium
body: <p>I am trying to enter some text into a textarea with selenium.</p>
  
  <p>Inspection of the source reveals the following about the textareas code.. my text should be entered where it says "Text goes here":</p>
  
  <pre><code>&lt;iframe id="tinymcewindow_ifr" frameborder="2" src="javascript:""" allowtransparency="true" title="Rich Text AreaPress ALT-F12 for toolbar. Press ALT-0 for help" style="width: 90%; height: 90px; display: block;"&gt;
  
      #document
          &lt;!DOCTYPE &gt;
          &lt;html&gt;
              &lt;head xmlns="http://www.site.org/xhtml"&gt; … &lt;/head&gt;
              &lt;body id="tinymce" class="mceContentBody " contenteditable="true" onload="window.parent.tinyMCE.get('tinymcewindow').onLoad.dispatch();" spellcheck="false" dir="ltr"&gt;
                  &lt;p&gt; … &lt;/p&gt;
              &lt;/body&gt;
          &lt;/html&gt;
  
  &lt;/iframe&gt;
  </code></pre>
  
  <p>When I try and select the textarea with some command like:</p>
  
  <pre><code>driver.find_element_by_name("tinymce")
  </code></pre>
  
  <p>it returns an error message like this;</p>
  
  <pre><code> File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 293, in find_element_by_name
      return self.find_element(by=By.NAME, value=name)
    File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 681, in find_element
      {'using': by, 'value': value})['value']
    File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 164, in execute
     ...
  </code></pre>
  
  <p>the command:</p>
  
  <pre><code>driver.find_element_by_id("tinymce")
  </code></pre>
  
  <p>Gives this error message:</p>
  
  <pre><code> File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 197, in find_element_by_id
      return self.find_element(by=By.ID, value=id_)
    File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 681, in find_element
      {'using': by, 'value': value})['value']
    File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 164, in execute
   ...
  </code></pre>
  
  <p>How does one select a textbox like this with Selenium?</p>