title: retrieving XML form with Python Selenium
body: <p>I will cut straight to the chase and question:</p>
  
  <p>First off, here's my code below (it's very simple):</p>
  
  <pre><code>from selenium import webdriver
  from selenium.webdriver.common.keys import Keys
  from selenium.webdriver.support.ui import Select, WebDriverWait
  el = driver.find_element_by_id("id1")
  el.clear()
  el.send_keys("2147000001")
  el = driver.find_element_by_id("id2")
  el.click()
  el = driver.find_element_by_id("id3")
  el.click()
  textbox = driver.find_element_by_id("id4")
  asd = textbox.get_attribute("innerHTML")
  print asd
  </code></pre>
  
  <p>The problem I am facing is that it prints nothing. I have checked the id4 element with firebug and it's like this: </p>
  
  <pre><code>&lt;textarea spellcheck="false" class="debug hint" id="id4" style="display: inline;"&gt;
  
  &amp;lt;?xml version="1.0"?&amp;gt;
  
  
  &amp;lt;?xml version="1.0"?&amp;gt;
  
  org.oneandone.ipayment.fraud.wrappers.SimilarIpaymentIdsResponse {
    *ipaymentIds =&amp;gt; org.oneandone.ipayment.fraud.IpaymentIds {
    ipaymentId =&amp;gt; [
      0 =&amp;gt; 80000000000
      1 =&amp;gt; 2147000165
      2 =&amp;gt; 2147000180
      3 =&amp;gt; 2147000130
      4 =&amp;gt; 2147000190
      5 =&amp;gt; 2147000192
      6 =&amp;gt; 2147000197
      7 =&amp;gt; 2147000144
      8 =&amp;gt; 2147000151
      9 =&amp;gt; 2147000198
      10 =&amp;gt; 2147000001
      11 =&amp;gt; 2147000170
      12 =&amp;gt; 2147000185
      13 =&amp;gt; 2147000179
      14 =&amp;gt; 2147000182
      15 =&amp;gt; 2147000183
      16 =&amp;gt; 2147000186
      17 =&amp;gt; 2147000193
      18 =&amp;gt; 2147000199
      19 =&amp;gt; 2147000201
      20 =&amp;gt; 2147000202
      21 =&amp;gt; 2147000204
      22 =&amp;gt; 2147000187
      23 =&amp;gt; 2147000218
      24 =&amp;gt; 2147000222
      25 =&amp;gt; 2147000301
      26 =&amp;gt; 2147000433
      27 =&amp;gt; 2147000434
      28 =&amp;gt; 2147000438
      29 =&amp;gt; 2147000461
      30 =&amp;gt; 2147000120
      31 =&amp;gt; 2147000462
      32 =&amp;gt; 2147002088
      33 =&amp;gt; 2147002672
      34 =&amp;gt; 2147003278
      35 =&amp;gt; 2147000229
      36 =&amp;gt; 2147000232
      37 =&amp;gt; 2147000326
    ]
    __id =&amp;gt; "0.97800600 1383227941"
  }
    errorcode =&amp;gt; 0
    additional =&amp;gt; "Similar ipaymentIds of 2147000001 retrieved."
    __id =&amp;gt; "
  
  0.97788900 1383227941"
  }&lt;/textarea&gt;
  </code></pre>
  
  <p>If i try using outerHTML it prints everything but the XML. Why is that? How can I get that information which I need? It is generated via javascript.</p>