Skip to main content
Question

Dynamic Titles in the web page

  • June 24, 2026
  • 3 replies
  • 114 views

I need to download PDFs from a website. The bot clicks on multiple links, and each click opens a separate webpage where the PDF must be downloaded.

The challenge is that every link opens a different page with a unique title, which cannot be predicted in advance. However, I observed a pattern: the title of the new page is based on the link text.

For example, if the link text is “Conflict to push global growth to post-pandemic low”, the opened page title becomes “MEED | Conflict to push global growth to post-pandemic low”.

Is there a way to dynamically handle or parameterize this behavior?

And also there is no option add variable in the window title

 

3 replies

Aaron.Gleason
Automation Anywhere Team
Forum|alt.badge.img+6
  • Automation Anywhere Team
  • June 24, 2026

@SILPA P R Using a wildcard like what you’ve done is probably the best bet.

The only other option you have is to manually set the window title to a known value, but that’s not really much better than using a wildcard.

 


Hi ​@SILPA P R ,

Depending on how the webpage behaves when you download the file, here are the two best ways to solve this dynamic window issue:

Approach 1: Bypass the Window Entirely (If href is accessible)
If the link contains an underlying file URL, you can download it directly in the background without opening any confusing new windows:

Extract Link: Use Recorder: Capture on the webpage link element.
Download: Drag the Browser ➔ Download file action into your flow

Approach 2: Use Regex Matching (If you must click a button in the new window)
If the browser must physically open a new window so you can click a secondary download button inside it, use a regular expression:

Click & Delay: Use Recorder: Capture to open the window, then add a 3-second Delay action so it completely loads.
Target Button: Use a second Recorder: Capture on the final download button inside the new window.
Switch to Regex: In this action's window properties, change the match mode from String to Regex.
Apply Wildcard: Truncate the changing text in the window title and use a wildcard pattern (e.g., change MEED | Title to MEED \| .* or .*AARI.*).

I would like to know which one works for your specific case


  • Author
  • Navigator | Tier 3
  • June 30, 2026

Thank you all for your responses. I will try these options and let you know which one has worked. As of now, i have developed in such a way that open the page in a seperate window wait for few seconds to load it completely and activate the current the window and then i am downloading the file. 

will try the options that you suggested and update it here.