I am using vba to extract the value from HTML using the .getElementsByClassName but not having much luck at the moment.
I'm trying to extract the "20+" from the following HTML
<p class="delivery-stock">
<span class="delivery-stock-value">20+</span>
<span class="delivery-available f-bold f4">available for delivery:</span>
</p>
<p>
The VBA I've used so far is
sh01.Cells(r, 5) = HTML.getElementsByClassName("delivery-stock-value")(0).innertext
sh01.Cells(r, 5) = HTML.getElementsByClassName("delivery-stock-value")(0).value
and I've done the same using the delivery-stock class too.
delivery-stock-value & delivery-stock occurs only once in the HTML.
Thanks in advance for your help.