Q:

Check the number of links that have been opened

Suppose that i have a 100 links. Out of this 3 links have been opened ( the color would change ). How do i find which are the links that have been opened using selenium...
Any ideas?
Thanks,
JB.

A:

In CSS there is a method to style the visited links.
a:visited { }

So probably what you could do is to use the css selector to get those links.
Assuming you are using Java,
List<WebElement> links = driver.findElements(By.cssSelector("a:visisted"));

The above code will give all the visited links in that session.
PS: This code is not tested as I am not in the position to try it.

