📜  如何查找网页中存在的所有链接 - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:31.852000             🧑  作者: Mango

代码示例2
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 list = driver.findElements(By.tagName(“a”));