How to iterate through the each record?

I want to go to each record and want to download the file.
Please see the below images, in first step i want to go the record and then i will do right click after that i will get the option to download.

But the challenge is there, for each iteration the records are consistent. e.g. First time there are 5 records, second time 10, third time 15 etc.
So how to do it? can anyone please help me.

image

image