Skip to main content
Question

Repeated Capture action for changing URLS

  • April 26, 2025
  • 9 replies
  • 83 views

Forum|alt.badge.img+2

Hello,

I try to automate the change of vendor settings on my online marketplace website. The capture actions are always the same but the urls is changing for every vendor based on vendor ID. E.g. 

Vendor 1 store-manager/vendors-manage/303/

Vendor 2 store-manager/vendors-manage/434/

Plan is to loop though a CSV file with the different vendor IDs and than perform the capture action for all vendors thats IDs are in the file.

Issue is that I am not sure how I can setup the capture action accordingly. When I do a capture it always hard codes the url “like store-manager/vendors-manage/303/” into the object properties.

Would be great if someone has any tip on that issue.

Thanks

Dominique

9 replies

Forum|alt.badge.img+2
  • Author
  • Cadet | Tier 2
  • April 26, 2025

P.S. I have already defined a variable for the Vendor-ID. So actually the goal is to perform all capture actions on this URL  /store-manager/vendors-manage/$Vendor-ID$/


Padmakumar
Premier Pathfinder | Tier 7
Forum|alt.badge.img+15
  • Premier Pathfinder | Tier 7
  • April 26, 2025

Hi ​@domdeutz ,

How frequent you have to switch between the vendors?

Is that after each iteration of a loop or multiple times during a single iteration?

 

Have you tried Window -> Set Title action?

 

Window package

 

 


Forum|alt.badge.img+2
  • Author
  • Cadet | Tier 2
  • April 26, 2025

Hi, thanks for your answer. One loop consists of one vendor. So each loop I am planning to change the ID.

But even before talking about loops I can´t even manage to run the capture for a different vendor than I do the capture for.

The title of the browser window is always the same no matter which vendor/ID. I assume it is some issue with the object properties?

Is there any documentation/training video about those object properties and how to manage those?

Thanks

Dominique


Padmakumar
Premier Pathfinder | Tier 7
Forum|alt.badge.img+15
  • Premier Pathfinder | Tier 7
  • April 27, 2025

If there is no change for vendor id during an iteration, then you can use the above mentioned Window action at the end of loop 

 

You can pass your customized title as the Window title with a wild card (*).

/store-manager/vendors-manage/*


Forum|alt.badge.img+2
  • Author
  • Cadet | Tier 2
  • April 28, 2025

Unfortunately I am stuck. I don´t even work with looping at the moment, I am just trying to run the same sequence of 8 capture actions on active window for 2 different vendors.

The capture action takes the URL of vendor one into the properties into the HTML FrameSrc-. When I deactivate this it seems to cause some issue for some of the capture actions.

Its quite frustrating as I am at the start of my AA journey but I am already stuck at such an easy task. What can I do to learn AA on that deep level to be able to understand those property functionality for captures?

Thanks

Dominique


Forum|alt.badge.img+4
  • Navigator | Tier 3
  • April 28, 2025

Hi,

Instead of completely unchecking FrameSrc (which sometimes breaks frames),you should edit FrameSrc value such as website/store-manager/vendors-manage/{$Vendor-ID$}/* or use wildcards.Dont include all properties which may change dynamically try to use more static properties while capturing such as domexpath,id etc .

Hope this solution helps.

Thanks


Forum|alt.badge.img+2
  • Author
  • Cadet | Tier 2
  • April 28, 2025

I will give it a try. Thanks for the help.


Rehan.S1
Navigator | Tier 3
Forum|alt.badge.img+4
  • Navigator | Tier 3
  • April 28, 2025

@domdeutz you can use the wild card for window title example your vendor id changing frequently so use the asterisk(*) for vendor id.
In object property of capture try to create a dynamic DOMXPath and use only property that not changing base on vendor. 


Shreya.Kumar
Pathfinder Community Team
Forum|alt.badge.img+14
  • Pathfinder Community Team
  • April 29, 2025

@domdeutz let us know if you found any of these solutions helpful!