How to implement a repeated operation in website

Hi, I want to create a RPA application in StudioX, to implement a repeated operation in website manually, e.g. select one mail → click the delete

To do that by RPA application, we need query the mail list first, then run a for loop for each item, to do the delete operation, could you guide me how to implement that?

Thx/Guomin

Hi @guomin.li ,

are u trying to a practise by taking this use case or ur real intention is to dlete the mails ??
if u want to delete the mails use the activity

This might help u

Thanks for your response, sorry for my late feedback.
I am trying to practice. Do you know how I can get the mail number in the Trash box? assign it to a variable, then I can implement a for loop for each item deletion?

who can help me this? how to implement that?

Its actually Gmail, but there is also activities for that.

@guomin.li What you are looking for is a loop.

There are several types of loops, the most common is ‘For Each’ which will loop over each item from an already established list or collection or items.
For example looping over each row in a data table. Usually you dont want to me adding or removing items from the list you are using during looping over it in this way as you can get errors.

The other main type of loop is a Do loop.
There are two flavours, Do While, and Do Until.

They will both loop as long as a specific criteria is not met, but either check at the start of the loop or at the end of the loop.

You could use a Do While loop so that as long as you can see another email, you will select it and delete it.

Thanks Jon for your suggestions, I will have a try and let you know my practice result later.