Inside the {for each uielement child} loop - The UiElement is no longer valid

Scenario:

Traversing a HTML table, after iteration1, when I try to read column values in iteration2, I get UI element is no longer valid

Steps to reproduce:

Current Behavior:

Expected Behavior:

Studio/Robot/Orchestrator Version:Studio Trial Ver.2016.2.6192

Last stable behavior:
Last stable version:
OS Version:Windows 7
Others if Relevant: (workflow, logs, .net version, service pack, etc):

Any sample url.
Please check the selector …

I need to select the chekcbox in each row, copy some details which get displayed outside the HTML table and iterate to second row and so on.

As soon as the part of the page refreshes to display the details for row1, when i reach row2, all elements in row 2 remain no longer valid

Selector:
id=‘costDataAdvTable:recStatusErrFld:*’

ok got it.
How your copying details of rows which is get displayed outside HTML table?

meanwhile please copy the selector of row 1 and then copy the selector of row 2 in notepad then compare is there any dynamic attributes.

example:

Row 1 column3 ID = id=‘costDataAdvTable:recStatusErrFld:0’
Row 2 column3 ID = id=‘costDataAdvTable:recStatusErrFld:1’

and so on…

I have replaced the 0,1,…by wildcard *

I am scraping data which is displayed below the html table.

Hi,
Instead of wildcard create a counter variable cnt and increase cnt +1 and pass that variable in selector.

1 Like

Yes, it works!!

id=‘costDataAdvTable:selectChkBox:“+count+”’
id=‘costDataAdvTable:recStatusErrFld:“+count+”’

Thank you :slight_smile: