Hyperlinks (or links) are fundamental elements of web pages. As a matter of fact, it is hyperlinks that make the World Wide Web possible. A sample link is shown in Figure 3-1 provided, followed by the HTML source.
Figure 3-1. An example of a hyperlink
<a href="index.html" id="recommend_selenium_link" class="nav" data-id="123" style="font-size: 14px;">Recommend Selenium</a>
Click a link by text
Using text is probably the most direct way to click a link in Selenium, as it is what we see on the page.