Repeating a set of activities

I have a set of activities which works fine for page one and I want the bot to perform the same bit of tasks in each other pages.

I tried repeat number of times, but it is just making the bot to click next page each time, but it is not performing the tasks it supposed to.

How to achieve this? Please advise.

Kindly share your work here if possible

Regards,

Hi @Tarun_Kumar

You can use the While activity or for each activity to iterate the activities repeatedly.

Hope it helps!!

I have used Do while, but what’s happening is that it’s going to next page and not performing the tasks it supposed to.

Okay @Tarun_Kumar
When directing to next page the URL is same or dynamic.

Here is my initial code. It works fine on page 1, But need the bot to repeat the same set of codes on each page. Where to insert click next and how to repeat the same set of codes? Please advise.

Hello @Tarun_Kumar ,
I see that you have put only the Click activity inside the While loop that is the Reason , on the Click activity is performing multiple times, in order for all the set of tasks to perform same number of times as click , put the While loop inside the ‘Do’ condition of the use browser and perform all the tasks, If you have any queries, Please let me know,
Regards;)

1 Like

If I keep the click activity outside, it is clicking once and ending the process.

Try using all the Activities inside the While loop , Like the Tasks that you want to perform should be inside the While loop so that it loops multiple number of times.
@Tarun_Kumar Please let me know if this works.
Regards;)

Hi @Tarun_Kumar

you need to pass the variable of counter in the Selector Live&page=1

in the place of you can pass the counter variable

Hope this helps

1 Like