© Courtney Zhan, Edited by Zhimin Zhan 2024
Z. Zhan (ed.)Selenium WebDriver Recipes in C#https://doi.org/10.1007/979-8-8688-0023-8_3

3. Hyperlink

Courtney Zhan1  
(1)
Fitzgibbon, QLD, Australia
 
Hyperlinks (or links) are fundamental elements of web pages. As a matter of fact, hyperlinks make the World Wide Web possible. A sample link is shown in Figure 3-1 and then we show the HTML source.

An underlined text reads recommend selenium.

Figure 3-1

An example of a hyperlink

HTML source:
<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 ...

Get Selenium WebDriver Recipes in C#: Practical Testing Solutions for Selenium WebDriver now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.