How to collect links?



I

Hi everybody, I need to click on the anchor tag link which is in blue color text in the given images, i need to clikc on every links one by one no matter how the ui is whether is could be a table or any thing else i just need to click all the links. how to achive this ..can anybody help me to achive this ?

Hi @Prabhakaran_Elango

1 – Find Children (Recommended)
Use Find Children on the page or main container with filter <html tag='a' />. Loop through the output using For Each and click each UiElement. This works regardless of whether links are in a table, grid, or any other layout.

2 – Get Attribute (href) + Navigate To
Use Find Children to collect all anchor tags, then use Get Attribute to read the href value and store it in a list. Loop through the list and open each link using Navigate To. This avoids issues when the page reloads.

3 – Anchor / Wildcard Selector
Use a Click activity with a wildcard selector for <a> tags and loop using Element Exists + While or dynamic indexing. This is useful when the number of links is small and predictable, but less stable than the first two options.

Hi @Prabhakaran_Elango

To click all blue anchor (<a>) links one by one, regardless of UI/table:

  1. Use Find Children (or Find Elements)
  • Scope: parent container / whole page
  • Filter:
<webctrl tag='A' />
  1. This gives a list of UiElements
  2. Use For Each UiElement
  • Inside loop → Click activity
  • Target → currentElement

Regards,
Gokul

Find Children ‘TABLE’: The attribute ‘tag’ is not supported. i got this error with your 1st solution

Step - 1

-Drag Find Children activity.
• Indicate the main container (web page / panel / table).
• Set properties:

Step -2

• Drag For Each activity.
• TypeArgument → UiElement
• Values → links

Inside the loop:
• Drag Click activity → set Target → item (loop variable)

Step 3 — Filter only blue links

If you want only blue colored links:

Inside the loop:

  1. Use Get Attribute
  • Attribute: style or class
  1. Add If condition:

If styleValue.Contains(“blue”) Then
Click item
End If

Hi @Prabhakaran_Elango

That error is expected
Find Children does not support the tag attribute when you point it directly to a TABLE activity.

The fix is simple: don’t use the TABLE as the target. Always use a parent container (Browser / Page / Panel) and then filter anchor tags inside it.

Here’s how you can do it properly:

Use Find Children
• Indicate the Browser or a main container div (not the table)
• In Properties:

  • Scope → Find Descendants
  • Filter → <webctrl tag='A' />

This will return all anchor (<a>) elements inside the page, whether they are in a table, grid, or anywhere else.

Then use a For Each (TypeArgument: UiElement)
Inside the loop, use a Click activity and pass “item” as the target.

If the page refreshes after clicking a link and causes selector issues, a safer approach is:

• Use Find Children → get all <a> elements
• Use Get Attribute (href) and store links in a list
• Loop the list and open each link using Navigate To

Do not use Find Children directly on TABLE. Always use Browser / Page / parent container, then filter <a> tags.

Hi @Prabhakaran_Elango

The Table Extraction Wizard in UiPath Studio should help you extract the underlying links.
Since the table seems to be a standard HTML table, the Wizard should identify the columns and values automatically.

Regards
Soren

Hi @Prabhakaran_Elango

Try this :

  1. Use Application/Browser – indicate the page.
  2. For Each UI Element
    Target: indicate full page
    Filter: <webctrl tag='A' />
  3. Click
    Target: CurrentElement

This clicks all anchor-tag links one by one.

If any link opens a new page and you need to return, add a small Delay or Go Back after Click.

If your blue text is not an <a> but still clickable, change filter to <webctrl role='link' />.

Happy Automation

@Prabhakaran_Elango
NEVER EXPOSE YOUR INFO IN PUBLIC DOMAIN.

Like in your provided screenshots I can see Session ID, Order Number, Case ID etc. These info have nothing to do with your query. Please hide these info. It could invite undesired impact.