Answers

Question and Answer:

  Home  Automation

⟩ Tell us can we find all links on a web page?

As all links are of anchor tag 'a', so we can find all of them on a web page by locating elements of tagName ‘a’:

List links = driver.findElements(By.tagName("a"));

 136 views

More Questions for you: