using web page information: incorrect filename
Posted: Tue Jan 30, 2018 2:50 pm
Hi! I'm using web page information to download a few thousands files (check box Auto downloading file).
Webserver offers to dowload file with name "XXX.csv", but Robotask use only "DownloadFile(ID).do" where ID is my variable in loop.
Webserver offers to dowload file with name "XXX.csv", but Robotask use only "DownloadFile(ID).do" where ID is my variable in loop.
Code: Select all
;*****************************
;* RoboTask Task file
;* Do not edit in text editor!
;*****************************
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|1598268565
Comment=STRINGLIST
ContinueOnError=INTEGER|0
ExternalName=STRING|"Task35"
Hide=INTEGER|0
ID=INTEGER|154953626
LogOnAsUser=INTEGER|1
Name=STRING|"Copy of mysite"
OnErrorTaskID=INTEGER|-1
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|1
UnicodeFormat=INTEGER|1
WriteGeneralLog=INTEGER|0
[Actions]
Action1=FOLDER
Action2=FOLDER
Action3=FOLDER
Action4=FOLDER
Action5=FOLDER
Action6=FOLDER
[Actions\Action1]
ActionID=STRING|"A_VARIABLES_SET"
Enabled=INTEGER|-1
Name=STRING|"Set variable ""ID"" with value ""533"""
Params=FOLDER
[Actions\Action1\Params]
expand=STRING|"1"
varname=STRING|"ID"
varvalue=STRING|"533"
[Actions\Action2]
ActionID=STRING|"A_LOOP_WHILE"
Enabled=INTEGER|-1
Name=STRING|"While loop"
Params=FOLDER
[Actions\Action2\Params]
case=STRING|"0"
connection=STRING|"0"
count=STRING|"1"
operator=STRING|"3"
type=STRING|"1"
value1=STRING|"{ID}"
value2=STRING|"0"
[Actions\Action3]
ActionID=STRING|"A_WD_PAGEINFO"
Enabled=INTEGER|-1
Name=STRING|"Web Page Information"
Params=FOLDER
[Actions\Action3\Params]
address=STRING|"http://mysite.com/DownloadFile.do?&id={ID}"
autodownload=STRING|"1"
autologon=STRING|"0"
downloadfolder=STRING|"C:\1-600\"
gethtml=STRING|"0"
getlinks=STRING|"0"
gettext=STRING|"0"
hide=STRING|"0"
htmlbodyonly=STRING|"0"
keep=STRING|"1"
overwrite=STRING|"0"
textbodyonly=STRING|"0"
[Actions\Action4]
ActionID=STRING|"A_GENERAL_PAUSE"
Enabled=INTEGER|-1
Name=STRING|"Delay"
Params=FOLDER
[Actions\Action4\Params]
delay=STRING|"800"
dimension=STRING|"0"
[Actions\Action5]
ActionID=STRING|"A_VARIABLES_INCREMENT"
Enabled=INTEGER|-1
Name=STRING|"Increment variable ""ID"""
Params=FOLDER
[Actions\Action5\Params]
incement=STRING|"-1"
vaiable=STRING|"ID"
[Actions\Action6]
ActionID=STRING|"A_LOOP_END"
Enabled=INTEGER|-1
Name=STRING|"End Loop"