[WebUI] Get All Links On Current Page


#1

This is a companion discussion topic for the original entry at https://docs.katalon.com/katalon-studio/docs/webui-get-all-links-on-current-page.html

#2

May i know how we can export all these links to excel?


#3

Hi, does anyone know how to retrieve specific URLs that are on a web page which will then open or navigate to the same browser page ?


#4

Does anyone know how to iterate through all these links one by one?


#5

Hi @Labinot.krasniqi95

The keyword returns a List<String> which you can iterate by doing:

List<String> allURLs = WebUI.GetAllLinksOnCurrentPageKeywor(...)
for(String aURL : allURLs) {
 println aURL;
}