The anticipated outcome: Pick a random assignment from the table that has the status "Not start". Below is the table provided:
<table id="table1">
<tbody>
<tr class="odd1">
<td>
<a href="#" class="click_link"> Assignment 1 </a>
</td>
<td class="status">
In Progress
<td>
</tr>
<tr class="odd2">
<td>
<a href="#" class="click_link"> Assignment 2 </a>
</td>
<td class="status">
Not start
<td>
</tr>
<tr class="odd1">
<td>
<a href="#" class="click_link"> Assignment 3 </a>
</td>
<td class="status">
Not start
<td>
</tr>
<tr class="odd1">
<td>
<a href="#" class="click_link"> Assignment 4 </a>
</td>
<td class="status">
Not start
<td>
</tr>
</tbody>
</table>
The solution to this problem: I will group [td] elements with the status "Not Start" into an array, then locate the parent [tr] of the first [td][0]. Finally, I will find and click the link from the [tr]. Can someone please guide me on how to do this effectively? Many thanks in advance!