web site link to page code example
Example 1: link whatsapp to website
<!--
link the following URL to the desired icon or button in your code:
https://wa.me/PhoneNumber (see the example below)
remember to include the country code
-->
<a href='https://wa.me/27722840005' target='_blank'><i class= "fa fa-whatsapp"></i></a>
Example 2: all links in web page
All the link TagName should be "a".
I locate the webelements starts with tagname "a".
I also use driver.findElements instead of driver.findElement since the
list of webelements will return.
List <WebElement> list = driver.findElements(By.tagName(a))