How to loop for multiple pages?

@solihin
You could follow this example

When you click on the checkbox, you get the selector. You need to replace a unique attribute(like aaname or id, etc) in the selector with a counter, that is incremented by one each time in the loop.