How do i get next to current .

So my scenario is i open a page and click some button to load a table. When i click on header of any column in table it sorts and add image next to it. I have locator for link in header so i can that. Problem is as its old code it does not have id and that header link is in a td tag without any id or class. All it contains is a column name which is also a link. I want to make sure when i click that link image with sorting symbol appears next to it.

<td>
    <a>Column Header</a>
</td> 

Click on the column header and it changes to :

<td>
    <a>Column Header</a>
    &nbsp; <img src="http://www.reddit.com/sorting icon url" />
</td>

Any suggestions??



Source link https://www.reddit.com/r//comments/8ym35p/how_to_select_element_next_to_currently_selected/

LEAVE A REPLY

Please enter your comment!
Please enter your name here