title: Can't get text in a "readonly" input element
body: <p>I am making a web-automation script that retrieves text that appears after clicking a button, however the text is inside an input element like:</p>
  <pre><code>&lt;input type=&quot;TEXT&quot; autocomplete=&quot;off&quot; class=&quot;DFGUISLE Readonly1&quot; name=&quot;Readonly1&quot; id=&quot;Readonly1&quot; maxlength=&quot;150&quot; readonly=&quot;&quot; tabindex=&quot;-1&quot; style=&quot;dir:ltr;   position:absolute; left:276; top:552; width:899; height:24;  &quot;&gt;
  </code></pre>
  <p><a href="https://i.stack.imgur.com/qc3yR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qc3yR.png" alt="Screenshot of the input element" /></a></p>
  <p>Problem is, when I try:</p>
  <pre><code>output_fields = driver.find_elements(By.TAG_NAME, 'input')
  for output_field in output_fields:
      print(driver.execute_script(&quot;return arguments[0].value&quot;, output_field))
      &gt;&gt; (blank)
      print(driver.execute_script(&quot;return arguments[0].innerText&quot;, output_field))
      &gt;&gt; (blank)
      print(output_field.get_attribute('value').encode('utf-8'))
      &gt;&gt; b''
      print(output_field.get_attribute('innerText').encode('utf-8'))
      &gt;&gt; b''
  </code></pre>
  <p>I get blank outputs. Any clue on how to get the text from these input elements? Like, in this case, I am looking for the
  <code>Merk en type : AUDI</code></p>
  <p>EDIT 1:</p>
  <p>I also noticed that in Network Logger, after I click &quot;Opvragen&quot;, the text can be seen from a response as follows:</p>
  <pre><code>parent.instanciate(new Array('EntryField','1689296692','CMV_WD_PBL01_CONSULT_STATUS','Readonly1',&quot;Merk en type : AUDI&quot;)).setAttributes(false,'','','none','noop',null,null);
  </code></pre>
  <p>EDIT 2:</p>
  <p>If you would like to try,
  Link: <a href="https://mobilit.fgov.be/WebdivPub/wmvpstv1" rel="nofollow noreferrer">mobilit.fgov.be/WebdivPub/wmvpstv1</a> and put <code>WAUZZZ8VXE1009546</code> into <code>Chassisnummer</code> then press <code>Opvragen</code></p>