I want to red text under strong tag I have written XPath like:
//section[2]/section/div[1]/div/div[1]/div[2]/text()[1]
Here is the HTML code:
<div class="listing-info">
<h4>Listing Information</h4>
<strong style="">Load #:</strong> 238635<br>
<strong>Date Listed:</strong> 5/11/17 2:12PM<br>
<strong>Ready to Load:</strong> 5/12/17 8:00AM<br>
<br>
<strong>Stock #:</strong> Old unit #17<br>
<strong>Serial #:</strong> 2FZAASDC35AU00313<br>
<strong>PO #:</strong> <br>
<strong>Cargo Value:</strong> <br>
<strong>Year:</strong> 2017<br>
<br>
<strong>Shipper's Completed Jobs:</strong> (0)<br>
<br>
</div>
I want to locate the values of the strong
elements:
238635, 5/11/17 2:12PM, 5/12/17 8:00AM
I tried but was unable to read the text value.