title: How to locate or extract texts in html file using selenium in python?
body: <p>How to locate or extract texts in a HTML file using Selenium in python. The text that I'm trying to get isn't an element.</p>
  
  <pre><code>&lt;div class="datagrid row"&gt; ==$0
   &lt;h2 class="bottom-border block"&gt;Accepted Shipment&lt;/h2&gt;
   &lt;table&gt;
    &lt;tbody&gt;
     &lt;tr&gt;
      &lt;td&gt;
       &lt;input type="hidden" id="looseAcceptedPieces" value="56"&gt; == $0
        " 56 pcs."
  
      &lt;!--Modified by A-7558 for ICRD-244765 starts--&gt; == $0
      &lt;input type="hidden" id="acceptedWt" value&gt; == $0
       "952 kg"
  </code></pre>
  
  <p>How do i locate or get that text under <code>&lt;input&gt;</code>, which is <strong>56 pcs.</strong> and <strong>952 kg</strong>
  perhaps, they are not elements.</p>