How do you save an attribute like download URL to a variable on studio?

Hi everyone,

I’m using Studio on Mac to automate a file download. To do this, I’m following the tutorial posted below, which guides me to use the ‘get attribute’ activity to save the download button’s href to a variable. However, because this attribute in Studio has no ‘save to’ textbox, I am unsure of how to continue. Is there a workaround in Studio?

Here’s the tutorial (relevant section starts at 2:45): https://youtu.be/czueI5m1B3M?si=1aGKkIJZMPmDqEO8&t=165

Can you paste a screenshot of how the “Get attribute” activity looks in mac?

Sure - here it is.

@Sean_M

Welcome to the community

Attribute value is the place where you can add the variable for output

Click on the right end of it where you see a volume adjust kind of icon and there you would see create variable option..already a default is added if you see there

Cheers

1 Like

Hey @Anil_G,

Thanks for the response! I’m also looking for the href option in the getAttribute dropdown list, but it isn’t there. Has it been replaced with something else in a recent update? I haven’t found any documentation on this.

Thanks!

You don’t need to do all of that. Just use the Wait for Download activity (to click the download button) with the Click activity inside it. Then when the file downloads, the Wait for Download activity will give you a variable with the reference to the downloaded file.

Have you done the free training at academy.uipath.com? I highly recommend it was your starting point into learning UiPath RPA.

1 Like

@Sean_M

href comes for element when the element tag is A..if that is not the case then there is no href at all..

also if it a div with javascript trigger on click then you might need to sue wait for download only as it does not expose the url

cheers