Dynamic Next Link Selector when data scraping

Hello guys, I want to do data scraping on a web.
I already found the pattern of the idx of the next link selector

  • the idx in the next link selector on first page is 1
  • the idx in the next link selector after first page is 3

How to tell the robot to put ‘1’ in index of the next link selector on the first page and ‘3’ after move from first page

Thank you for help!!

you can give CountVariable in a loop!
and Give initial value as CountVariable = 1 and asssign it like CounterVar = CounterVar + 2 inside a loop!

should I put while activity in Data Scraping scope?

yes!

what should I put in condition?

Did you find a solution to this problem? I’ve been searching for a solution but no help.