For Each UI Element: Unable to select <TR>

I have been unable to get For Each UI Element to select the of a page.
When attempting, it either grabs the or it grabs each individual

Even after editing the Strict selector in the right pane inside UiPath, it doesn’t respect that and instead goes back to the original TD. I’m not sure why editing the selector isn’t working.

Any thoughts on how to get this working or if another activity is better?

I’m unable to edit the post, but for some reason it took out some info (maybe escaped HTML)

I’m trying to select the “tr” tags in the DOM, but the selector only grabs either the “tbody” or the individual “td” cells

@Eluruel

when indicating itself try to change the selector as you need and then save it

cheers

Appreciate the input. Do I have to do some console style editing to get the TR element more selectable? UiPath is still just selecting either the TBODY or the TD

I found a workaround using Find Children instead

For Each UI Element does not always respect manual selector edits because the activity is driven primarily by the Target Filter and UI Tree structure, not only by the Strict selector.
That’s why even after editing the selector, UiPath may “snap back” to the original <td> elements.

This usually happens when:

  • The browser’s UI tree structure changes during iteration
  • UiPath thinks your edited selector does not uniquely identify the element
  • The target anchor is defined implicitly by the UI framework, overriding your edits
  • The Filter is too broad, so UiPath picks every child element instead

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