Java Selenium find all links from website? -


i have function checks empty href links on single page. how can edit function go through every link on every page of site?

list<webelement> links = driver.findelements(by.tagname("a")); 

pseudo code (since not know how page formatted)

while(links.hasnext()) { function here; } 

that how people go parsing entire document, , since page lines of code, can parse it. or, if using selenium, coming appium perspective, can try create table contains pointer hrefs, make rows variable populated them driver.findbyclass; , run or while loop.


Comments

Popular posts from this blog

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -

YouTubePlayerFragment cannot be cast to android.support.v4.app.Fragment -