Issue with "For Each UI Element" Not Navigating to Next Page

Hi Team,

I am using the For Each UI Element activity to extract table data row by row. Each page contains 100 lines of data, and after processing one page, the bot should click “Next” to continue. However, the bot completes the run without navigating to the next page.

I have tried various element indication and anchoring methods, but the issue persists the bot stops after processing only the first page.

Thanks in advance.

@jai_kumar2

Are you using Table extraction method only??

For extracting details from a structured input spreaded across multiple page - Use Table extraction

Hi @sharazkm32,

Yes, I tried on both Table Extraction and Extract Data Table activities, but the next page feature isn’t working in either of them.

Could you please share a screenshot

Also please confirm that you are selecting the next page option while using data table extraction method

image

@jai_kumar2,

Check the Next page button selectors. Also you can test the extraction while designing

Hi @Jay_Kumar
You can use this following methods

Check for the “Next” Button: Use “Element Exists” in UiPath to find the “Next” button. If it’s False, adjust the selector using UI Explorer. If True, try different click methods.

  1. Manual Table Extraction: If auto-click isn’t working, manually use “Extract Data Table” to save the data in a DataTable. Check for the “Next” button again.If found, click Next, wait, and repeat.

  2. Fixing Click Issues: Try “Simulate Click” or send Window Messages if clicking fails. Scroll to the button if needed.

  3. Loop Until Last Page: Set up a loop like this: While (Next Button Exists = True)
    Extract → Save → Click “Next” → Delay → Repeat.

Let me know if it works or not