📌  相关文章
📜  如何在页面中找到所有链接 - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:37.850000             🧑  作者: 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”));