Hi team, I want to download a file from google chrome and save it to particular folder without changing the file name. How can it be done?
By default the downloaded file will be saved into Downloads folder. Then you can use Move File activity to move the file from Downloads folder to specific folder you want.
Other alternative way is change the chrome settings to save the downloaded file to which ever folder you want.
You can configure your browser as below
Click on Settings
Click on Advanced->Search for Downloads as below
By default Ask where to save each file before downloading is off, so it downloads to your downloads folder
Just toggle on the above settings, so that you will be prompted to where to save the file
Once prompted you can paste the entire file path with FileName using TypeInto
Hope this may help you
Thanks
This will change file name???, since we will be using type into in filepath.
It’s your requirement, if you need to change file name as well then use typeinto and give path with file name you want.
If you want the same file name then before typeinto you need to place Get text activity and append the output to your type into and just give the path
Hope this may help you
Thanks
Also when u are downloading the file from the website , extract the attribute from element which u are clicking to download the file (it would be href attribute), from that attribute u can get the link of file from which u can extract the file name as well.
Regards,
Nived N
Thanks for the reply, Can you elaborate, where to use get text activity, If I click on the button “Download CSV” then a file will download, I have changed the chrome setting, it will show the “save as” box. Can you tell me using get text activity what to be extracted.
In the Save As box you can find FileName with already some name, so use that element to get the text from it
Hope this may help you
Thanks
Thanks for the reply, Do i need to type the file path in Filename using type into, If i do so then the file name will be changed, can you help me where to give the get text output.
Set your path as "C:\Desktop\Test" + Get Text Variable
So it will save the desired location using fileName
Hope this may help you
Thanks
Thanks It worked
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.