Issues with For Each Ui Element

Hello,

I am trying to double click on each row in a web application. I am able to use For Each UI Element activity along with the double click activity to achieve this result however the problem is that the table is over 5,000 rows with a scroll bar on the side. When I chose the target, UiPath only identifies the first 35 rows in the table and finishes running once it gets to the 35th row. How can I make it identify all the rows and iterate through the whole table?

Thank you,
Marcin

Hi,

How about using MouseScroll activity to scroll down to the bottom of page then using ForEachUiElement?

Regards,

Hi Yoichi, thank for the reply. I don’t follow the thought process. Use mouse scroll to go all the way down to the 5,000th row and then just invoke ForEachUiElement? Won’t it still begin from the first element?

I want to clarify, ForEachUiElement is able to actually scroll down on the table however, it stops on the 35th row. When I click on the first row to choose target only 35 rows down get highlighted.

Hello

Try Extracting the table (will take a bit of time).

Once extracted, use a for each row and generate a unique selector using UiExplorer for a “click” activity using Simulate click.

Hopefully this helps,

Cheers

Steve

Hi,

I guess this issue is caused by browser doesn’t read whole the page. So scrolling down to the bottom have browser read all the content to memory then start to ForEachUiElement, and it may solve the issue.

Also please set NoLimit at LimitExtractionTo property.

Regards,

Hi Steven, I do have the whole table in excel already. Does that help me in any way?

Yes

Use a read range activity (workbook) to get the excel file as a datatable.

Then just use For each row activity to iterate over the table.

Does that help?