Repeat keywords for each page of pagination

I agree with @donzoolo’s advice. I don’t think there’s a Keyword in Robot Framework or in Selenium Library that will magically do this for you.

Also, is this a Test that you are automating or a Task? Meaning, will you know beforehand whether there are 3 pages in the grid or maybe 10 grid pages? Or perhaps you can do a “show all results” on the grid so that there are no pages beyond 1 page?

I think a screen shot of your page will help us help you.

If this is a test you are automating, then the ideal way to handle this would be to use an account/username or an environment where you can control the data that is there.

Or maybe do a WHILE loop where it keep clicking on ‘Next Page’ while it is enabled…something along those lines. Such complicated Keyword might be best handled in Python vs. Robot Framework.

But again, you might be trying to get your automation to do more than it should be doing…especially if this is a test you are trying to automate.