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

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -