I have a html page with an element called Student and it has multiple rows like below:
Student: Foo Bar
Class X
Section A
I was able to locate the Student element using XPath like this: //b[contains(text(),'Student')] but I want to extract the same thing using jquery selector and extract it's child elements like Foo Bar, Class X and Section A using jquery Selector
I tried something like below but it didn't work:
student(wait: true) { $('b', text: contains('Student:')).parent().parent()
Here is how the html looks:
<tr>
<td colspan="2" align="left" height="25" class="SubSectionTitle" style=""><b style=""> Student Information</b></td>
</tr>
<tr>
<td valign="top" class="Label" rowspan="3"><b style="">Student:</b></td>
<td style="">Foo Bar</td>
</tr>
<tr>
<td>Class X</td>
</tr>
<tr>
<td>Section A</td>
</tr>