AutoIT Testing Help -
hi trying n excel file on web save automatically using autoit.
the following code not working:
#include <ie.au3> $oie = _iecreate ("http://127.0.0.1/my_site") _ienavigate ($oie, "http://databases.about.com/library/samples/address.xls") winwait("file download","do want open or save file?") controlclick("file download","do want open or save file","button2") winwait("save as","save &in:")
trying using ie not right way.
have tried using inetget function?
local $sfilename = filesavedialog("save excel file...", @mydocumentsdir, "excel spreadsheet (*.xls)|all files (*.*)", 18, "address.xls") if @error exit ; user cancelled dialog local $ibytes = inetget("http://databases.about.com/library/samples/address.xls", $sfilename, 8) msgbox(0, "worked :)", "file downloaded. " & $ibytes & " downloaded.")
that works , downloaded spreadsheet addresses (sounds right).
mat
Comments
Post a Comment