Extract Data - next page

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?


If the element of the next page is not identified it will raise the exception, you can make it in try-catch and point to the row1

But can you provide the screenshot of the element so that it will be clear


Hi @prititit

Please elaborate on your question, row’1’ is your start index on the next page?

hello @Krishna_547

yes. row 1 should be the start index of the next page.

But it indicates row 26. since the last row of the first page is row 25

Hi @prititit ,

Try using Table Scraping (earlier named as Data scraping).


2. Extract data.xaml (24.2 KB)

Hello @Krishna_547

This is my xaml file.

  1. Scrape table without next selector
  2. Loop click of the arrow to get the docu # inside
  3. Click next page.

Issue: everytime it goes to the next page, it should scrape again and click again the first row.

And this is the website.

PTAB Open Data

Hey, I think you has given number of results to 100 while scraping the data. make it to 0. then indicate it on to the next page.

I hope this will works for you!


Hey @prititit ,

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)


Hello @Krishna_547

Do you have a sample for this one? I don’t know how to put it in the uipath studio :frowning:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.