The data that I’m trying to extract is not in table format, is just similar enough, so I thought that I can use for each.
I tried to use table extraction, but got the same issue, I just can’t fine tune the selector for each column (using the selector found by clicking the element is always wrong and get bad data per column).
I think there may be a fundamental misunderstanding of this activity happening here. The selector is not for which elements it will loop through. The selector is for the parent container of those elements. When you add a new For Each UI Element and designate items, you’re supposed to designate the items (ie columns, repeated objects, etc) that you want it to loop through. It figures out the parent container for you.
What happens when you just let the wizard do its thing and don’t touch the selector?
If I let the wizard do its thing, unwanted elements are getting selected (those unwanted elements have different data and selectors inside, only the parent div is the same) and I don’t know how to filter them out.
Filter them out using an If inside the For Each. You can get whatever properties you need using Get Attribute to figure out if it’s a UI element you want to process.