Extract the current page url and click next button in loop

I have a web page. i want to capture the URL of current page from the address bar and then click next button. Again capture the next URL from address bar and click next button again untill last and save the different urls captured in excel

Hi @Manish_Mathias

Welcome back to the forums :slight_smile:

Have you tried using the “Get Attribute” activity. Then update the selectors be dynamic for any URL.

I have a made a basic sample for you. Its designed for Google Chrome.
Main.xaml (5.3 KB)

Hopefully this helps :blush:



1 Like

Hello @Manish_Mathias
If the selector of the next button is same then you can use it in a loop.

You can either use Get attribute activtiy on the next button and get the url or after clicking the next button you can use “Get URL” activity to fetch the current url.


Welcome to community!

Classic Design Experience

Modern Design Experience


thank you it worked @THIRU_NANI @Rahul_Unnikrishnan @Steven_McKeering