getAllLinksOnCurrentPage() get items and set depth


#1

I try to use getAllLinksOnCurrentPage() to get all the links from opened webpage.

list = WebUI.getAllLinksOnCurrentPage(true, [])

for(int i=0;i<list.size();i++){

_ System.out.println(list.get(i));_

}

It doesn’t print any elements of list, but I see in logs: Found 20 elements.
Is it possible to get links from all the pages recursively?


#2

@plaidshirtakos
Try his:

list = WebUI.getAllLinksOnCurrentPage(true, [])

for (url in list) {
println(url)
}