Encountering an issue with calling multiple elements of the same class using .innerhtml. Here is the URL I am dealing with:
When running the following code in Chrome console, this is the output:
document.getElementsByClassName('a-size-small a-color-secondary')
<span class="a-size-small a-color-secondary">by </span>
<span class="a-size-small a-color-secondary">Adore Plush Company</span>
<span class="a-size-small a-color-secondary">Get it by <span class="a-color-success a-text-bold">Tuesday, Jun 21</span></span>
...
...
However, when trying to access innerHTML using document.getElementsByClassName('a-size-small a-color-secondary').innerHTML
I receive "undefined". The aim is to extract the text only between the span tags.
If anyone can provide guidance or assistance, that would be greatly appreciated. Have already experimented with different approaches like var and Selection method, successfully extracting content from the first class element but encountering issues with SelectionAll. Thank you for any support.