Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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))
Source by linkchecker.github.io #
 
PREVIOUS NEXT
Tagged: #links #web #page
ADD COMMENT
Topic
Name
5+6 =