Navigating pages one by one(pagination)

Hi All,
I am new to UIPATH and I am trying to do small project where I am trying navigate pages one by one and also downloading all the attachment but I am able to download all the attachment of first page after that bots simply clicks on NEXT button due to which unable to download attachments of 2nd and 3rd pages

Can any one please correct me what i am doing wrong

I am using below URL
https://rpachallengeocr.azurewebsites.net/ALL_INVOICE_EXTRACTION.xaml (14.9 KB)