Download text file


#1

I am trying to download the text file(txt09282018-1.txt) from the URL. However, the output is displayed on the browser itself if I am using click activity. My requirement is to download that text file to local.


#2

Hello,

Can’t you try the “Right click, Save As…” method ?


#3

You can also try using Get Text after it displays in the window then Write Text File


#4

What is the activity to perform this?


#5

I guess you would need to right click on the hyper text, then chose “Save as…”, and then input your path.


#6

Hi @abhyudayajena
I think your solution is HTTP Request Activity.
This activity is able to download and save .txt file with “Download Resource” option.
Please see below


#7

Is this activity available in community edition?


#8
  1. Click activity with selector as "<html title='Index of /uipath/report' /><webctrl aaname='txt08282018-1.txt' tag='A' />"
  2. Attach window activity with selector "<wnd app='iexplore.exe' cls='#32768' />"
  3. in Do section, Click activity with selector "<ctrl name='Context' role='popup menu' /><ctrl automationid='2268' />"
  4. Click activity with selector "<wnd app='iexplore.exe' cls='#32770' title='Save As' /><wnd ctrlid='1' title='&amp;Save' />"

You can also make the first selctor as dynamic one by using variable


#9

Yes. It’s available in CE.
If you can not find in web activities, you need to check Manage Packages.
05


#10

I can only see mail under App Integration. And also in manage I couldn’t fine web.


#11

don’t worry.
Let’s check the second page in Package Manager.


#12

Thanks got it… however now my requirement is to download all the text files to local which contains 09282018 from the URL. In this scenario 3 files contains 09282018. How to download all the three files?


#13

Any suggestions for my requirement?


#14

did you tried my suggestion?

  1. Click activity with selector as "<html title='Index of /uipath/report' /><webctrl aaname='txt09282018*.txt' tag='A' />"
  2. Attach window activity with selector "<wnd app='iexplore.exe' cls='#32768' />"
  3. in Do section, Click activity with selector "<ctrl name='Context' role='popup menu' /><ctrl automationid='2268' />"
  4. Click activity with selector "<wnd app='iexplore.exe' cls='#32770' title='Save As' /><wnd ctrlid='1' title='&amp;Save' />"