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 select 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> <img src="http://www.reddit.com/sorting icon url" /> </td>