Interviewer And Interviewee Guide

Automation Interview Question:

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

Submitted by: Muhammad
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"));
Submitted by: Muhammad

Read Online Automation Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.