Skip to main content

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

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$/


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

 

 


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


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/*


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


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


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


@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. 


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


Reply