I'm suddenly having an issue with clicking a link. This was working previously but now is not and I can't figure out what's wrong.
This is how the link is defined:
<td id="whiteseparator" class="generalcontent" width="22%">
<a title="NOT Received" onclick="javascript:gotosubmit('SalaryDetailsList'); return false;" href="#">NOT Received</a>
</td>
This is my code clicking the link. There are several of these and what I'm trying to do is get all of them so I can then iterate through all of them.
List<WebElement> mylinks = driver.findElements(By.cssSelector("a[title='NOT Received']"));
for (int i=0 ; i < mylinks.size() - 1; i++)
{
mylinks.get(i).click();
....(and so on)
It's not getting past the List statement. It just sits there. Any ideas?