[WebUI] Get All Links On Current Page


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


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


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 ?


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


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;