December 2015
Intermediate to advanced
192 pages
3h
English
CHAPTER 3
![]()
Hyperlink
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
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.
driver.FindElement(By.LinkText("Recommend ...Read now
Unlock full access