I have to scrape the data and click the arrow per document and get the text inside.
Every time it goes on the next page, the counter will continue the loop (samples 27, 28, 29). But the row should be back to row’1’ (samples 1,2,3) On the next page.
How to go back to row’1’ if you’re on the next page?
You have used a counter inside for each and for each page you can see only “25”, after that once you click on the next arrow you must have to reinitialize your counter so that the click happens from the start of the rows again on the next page.
Follow below steps,
Firstly check your ExtractDataTable definition, it should look like below,
Inside for each, use If Condition to check the counter, if the counter equals 26 then the bot has to click on the next page and also reinitialize counter back 1(the start index of the next page)