Can we directly pass a variable in the selector?

Sure
we got two options
–either while doing data scrapping itself we can choose the NEXT page option which will iterate till the last page
or
if we want to iterate on our own for each page then we need to pass the Pagenumber variable as a input to the selector attribute and we need to increment the page number within while loop
while condition be like this
Counter < PageNumber
and use this while loop within a TRY block of TRY CATCH activity so that if the sequence fails due to no more transaction it will go to CATCH block where we can mention that “There are no more pages to fetched with data” in a log message

Cheers @AryanSingh