Capture innertext from unknown number of tags
Posted: Tue Jan 14, 2014 4:21 pm
Hello,
I'm pretty stuck with the following case. I need to get the innertext from all the <a>-tags from an unknown number of <a>-tags and put all these innertexts in a simple data table.
The following (variable) code is given, for instance:
How can I do that, since I don't know how many <a>-tags are available? A simple 'Get Value' does not work, right?
Regards,
Bas
I'm pretty stuck with the following case. I need to get the innertext from all the <a>-tags from an unknown number of <a>-tags and put all these innertexts in a simple data table.
The following (variable) code is given, for instance:
Code: Select all
...
<body>
<ul class="nav">
<li class="btn">
<a href="1.htm">One</a>
</li>
<li class="btn">
<a href="2.htm">Two</a>
</li>
<li class="btn">
<a href="3.htm">Three</a>
</li>
</ul>
</body>
...
Regards,
Bas