Repeat keywords for each page of pagination

Hello,

I have a complex issue and I need your help !
On one of my test, I make 3 verifications on my first results page.
Each verification is in Gherkin language and corresponding to keywords (here is an extract) :

  • Then the page only displays the SALE transaction type in main research

  • And the page only displays the APPARTMENT type in main research

  • And the page only displays the MILLAU locality in main research

Those verifications work on my first result page but when the user click on the “Next” button, the second page of results appear… and I must make the same verification on this page (and the following…)

Is it possible only with Robotframework’s keywords or should I use the Python code to write it?
I can duplicate the verificaion on the next page but I would like to loop it for each pagewhen the user click on “Next”.

Thanks for all !