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.
<div class="datagrid row"> ==$0
<h2 class="bottom-border block">Accepted Shipment</h2>
<table>
<tbody>
<tr>
<td>
<input type="hidden" id="looseAcceptedPieces" value="56"> == $0
" 56 pcs."
<!--Modified by A-7558 for ICRD-244765 starts--> == $0
<input type="hidden" id="acceptedWt" value> == $0
"952 kg"
How do i locate or get that text under <input>
, which is 56 pcs. and 952 kg
perhaps, they are not elements.