# I want to click a link in the body text of a web page.

**URL:** <https://forum.uipath.com/t/web/5793837>\
**Category:** フォーラム\
**Tags:** studio, activities\
**Created:** [December 3, 2026, 10:57am UTC](https://forum.uipath.com/t/web/5793837 "2026-12-03T10:57:16Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![k-yamashita](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/k-yamashita/32/498744_2.png) [@k-yamashita](https://forum.uipath.com/u/k-yamashita)\
**Post date:** [December 3, 2026, 10:57am UTC](https://forum.uipath.com/t/web/5793837/1 "2026-12-03T10:57:16Z")

</div>

What I want to do is open each thread on the message board and, if there is a file download link in the post, click it to download the file.

I can open each thread in turn, but I’m having trouble implementing the process for clicking links in the post.  
The link text is displayed as text, with the download URL embedded as a hyperlink. Clicking the link directly downloads the file.  
I was able to retrieve a URL on one page using the “Extract Table Data” activity, but it doesn’t retrieve the URL on other thread pages, so I haven’t been able to proceed.

How can I accomplish this?

Here’s an image for reference.  
Each topic is on a separate page, and each post contains a mix of download links and other links.  
I only want to retrieve the download links.

 ![image](https://global.discourse-cdn.com/uipath/original/4X/0/3/3/033b584f5706a42d9b05e11aaf1f6db019d0d08c.png)

---

<div class="post-metadata">

**Author:** ![YankitSingh](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/yankitsingh/32/575165_2.png) [@YankitSingh](https://forum.uipath.com/u/YankitSingh)\
**Post date:** [December 3, 2026, 11:38am UTC](https://forum.uipath.com/t/web/5793837/2 "2026-12-03T11:38:50Z")

</div>

Hi @k-yamashita,

Try using the Get Attribute activity and check if you can able to get the URL from any attribute value.

First, indicate the Text and check the attribute value.

Thanks.

---

<div class="post-metadata">

**Author:** ![MayureshOfficial\_45](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/mayureshofficial_45/32/573757_2.png) [@MayureshOfficial\_45](https://forum.uipath.com/u/MayureshOfficial_45)\
**Post date:** [December 3, 2026, 3:00pm UTC](https://forum.uipath.com/t/web/5793837/3 "2026-12-03T15:00:53Z")

</div>

Hi @k-yamashita,

The reason Extract Table Data worked on one page and failed on others is usually because the underlying HTML structure (such as the number of paragraphs or extra links like 関連資料を表示する) changes from thread to thread, which breaks the generated selector.

Since your download links consistently use the link text ダウンロードする, you don’t actually need Extract Table Data at all. A couple of much more reliable ways to handle this:

1. Check App State + Click (if there is one download link per post): Add a Check App State activity inside your browser scope and indicate the ダウンロードする link. Open the selector in UI Explorer and make sure it only relies on tag=‘A’ and aaname=‘ダウンロードする’ (or aaname=‘_ダウンロード_’ with a wildcard), removing any page-specific attributes like title, url, or idx. In the Target appears branch, just use a Click activity with that same selector to trigger the download directly.

2. For Each UI Element + Get Attribute (if a post can have multiple download links or you need the URLs): Use the For Each UI Element activity and indicate one of the ダウンロードする links. It will automatically find all matching download links on that thread page while ignoring other links like 関連資料を表示する. Inside the loop, you can either Click CurrentElement directly or use Get Attribute (“href”) as @YankitSingh mentioned to pull the exact download URL.

If the link text itself varies across pages, you can also use Find Children on the post body container with the filter “”, loop through the elements, and check Get Attribute (“href”) for file extensions like .pdf, .zip, or .xlsx before clicking.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![Ankit9510](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ankit9510/32/512761_2.png) [@Ankit9510](https://forum.uipath.com/u/Ankit9510)\
**Post date:** [December 3, 2026, 3:12pm UTC](https://forum.uipath.com/t/web/5793837/4 "2026-12-03T15:12:01Z")

</div>

Hi @k-yamashita,

From your screenshot, all the download links have the same text, and the other link is different. So you can use the text to click only the download links.

**If each page has only one download link:**

Use a Click activity and indicate the required link. Then open Selector Editor and keep only the stable parts, something like this:

**If a page can have more than one download link:**

1. Use Find Children, indicate the area that contains the post (not the link), set the scope to FIND\_DESCENDANTS and the filter to .
2. Use For Each UI Element to loop through the links.
3. Inside the loop, use Get Attribute with innertext and store it in a variable, for example linkText.
4. Add an If with the condition linkText.Trim = " ".
5. If it is true, use Click on the current item.

Please print linkText once with Log Message to confirm the exact value. Also check in Selector Editor that innertext is available for your link, because it can change from site to site.

If the page reloads after a click and the loop stops working, first store all the matching href values in a list, and then open them one by one.

---

<div class="post-metadata">

**Author:** ![iampnkz](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/iampnkz/32/563573_2.png) [@iampnkz](https://forum.uipath.com/u/iampnkz)\
**Post date:** [December 3, 2026, 4:40pm UTC](https://forum.uipath.com/t/web/5793837/5 "2026-12-03T16:40:42Z")

</div>

Hi @k-yamashita,

> [@k-yamashita](#):
>
> Clicking the link directly downloads the file.

I believe you are able to click the Download button, and the file gets downloaded. You just want to save it to the desired folder path.

You can either enable the “Ask where to save each file” option in your browser and automate the Save As popup, or use the Wait for Download activity and then move the downloaded file to your desired location.

If there is an issue clicking the Download button, try using the Hover activity before the Click activity. Also, make sure your selector does not contain the hyperlink value.

Thanks!

---

<div class="post-metadata">

**Author:** ![Yoichi](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/yoichi/32/523754_2.png) [@Yoichi](https://forum.uipath.com/u/Yoichi)\
**Post date:** [December 3, 2026, 11:24pm UTC](https://forum.uipath.com/t/web/5793837/6 "2026-12-03T23:24:18Z")

</div>

Hello

This depends on the page structure, so if possible, please share more specific information (such as the page structure or how UiExplorer recognizes the target element).  
If the site is publicly accessible, it may be helpful to share the URL.

---

<div class="post-metadata">

**Author:** ![k-yamashita](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/k-yamashita/32/498744_2.png) [@k-yamashita](https://forum.uipath.com/u/k-yamashita)\
**Post date:** [December 4, 2026, 8:47am UTC](https://forum.uipath.com/t/web/5793837/7 "2026-12-04T08:47:27Z")

</div>

Thank you all for your many comments.

To clarify a few points:

- I’m not having any trouble with the download process itself.
- I don’t know what text the links on the page might contain.
- The visible text is meaningless. I want to decide whether to click a hyperlink based on whether it’s a specific one.

In short, what I want to do is: “Detect all hyperlinks on a page and decide whether to click each one based on whether it has a particular structure.”  
The overall process would look like this:  
① Open the page  
② Look for links  
③ If there are any links, repeat:  
④ Click each link if it has specific content  
③ End repeat  
① End repeat

I’d like to implement this process. Thank you for your help.

---

<div class="post-metadata">

**Author:** ![k-yamashita](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/k-yamashita/32/498744_2.png) [@k-yamashita](https://forum.uipath.com/u/k-yamashita)\
**Post date:** [December 4, 2026, 8:50am UTC](https://forum.uipath.com/t/web/5793837/8 "2026-12-04T08:50:51Z")

</div>

Thank you as always.

The site is an internal bulletin board, so I can’t make it public.

I’m not sure how to provide „more specific information (such as the page structure or how the target element is recognized in UiExplorer).”  
Which screen should I use to check this?

---

<div class="post-metadata">

**Author:** ![Yoichi](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/yoichi/32/523754_2.png) [@Yoichi](https://forum.uipath.com/u/Yoichi)\
**Post date:** [December 4, 2026, 9:06am UTC](https://forum.uipath.com/t/web/5793837/9 "2026-12-04T09:06:13Z")

</div>

Hello,

First, what are the current selector settings?

Based on that, I think you’ll need to compare the attributes of the “Download” links on each page in UiExplore and their values.

If the link in question is simply an A-tag link with the text “Download,” then specifying attributes like this might work:

```
<webctrl aaname='*ダウンロードする*' tag='A' />

```

---

<div class="post-metadata">

**Author:** ![k-yamashita](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/k-yamashita/32/498744_2.png) [@k-yamashita](https://forum.uipath.com/u/k-yamashita)\
**Post date:** [December 4, 2026, 9:16am UTC](https://forum.uipath.com/t/web/5793837/10 "2026-12-04T09:16:01Z")

</div>

Thank you for your reply.

I understand now!  
When I checked with UiExplore, I found that the link in question had the following attributes:

```auto
<webctrl aaname='*' tag='A' type='neofile' />

```

I was able to resolve the issue by placing this in the filter for Find Children and clicking each element in a loop through the UiElement array.

 ![image](https://global.discourse-cdn.com/uipath/original/4X/6/9/9/69958509bfaeb75bc1b79ff3537292a276bc4000.png)

Thank you. This was a great help.
