html - Chrome Console get values from xpath array -
i'm using google chrome console array of elements have class of attrvalue
. i'm using:
$x('//*[@class="attrvalue"]');
and output:
<td class="attrvalue">transway 1a</td>, <td class="attrvalue">northbound/westbound</td>, <td class="attrvalue">facing west</td>
it works great array of elements trying array of values within elements. appreciated.
get text()
:
$x('//*[@class="attrvalue"]/text()');
Comments
Post a Comment