IEWaitFileDownload locking up after download

General Macro Scheduler discussion

Moderators: Dorian (MJT support), JRL

Post Reply
davidwms
Junior Coder
Posts: 23
Joined: Wed Aug 26, 2009 6:18 pm
Location: Madison, AL
Contact:

IEWaitFileDownload locking up after download

Post by davidwms » Wed Sep 25, 2013 7:36 pm

I am using Macro Scheduler v14.0.14 and Internet Exporer 8

When I set downloads to automatic I still get the File Download window and it will not take input from the program. I am thinking I may have something set wrong in the IE options. Automatic Promting for File downloads is enabled and Popup Blocker is disabled. Is there anything else I need to have set. After the user clicks on "Save" the file is saved atomatically but it never released the script to go to the next line. I have to stop it manually. Here is a test script that demonstrates my problem:

Code: Select all

// Generated by MacroScript WebRecorder 3.02
// Recorded on Wednesday, September 25, 2013, at 01:39 PM

//Move the mouse cursor out of harm's way
MouseMove>0,0
Let>delay=1

//Enable automatic downloads to script's folder
IEOnDownload>1,%SCRIPT_DIR%,IEres

//Set timeout for ClickTag and FormFill to 10 seconds
IESetTimeout>10,IEres

IECreate>0,IE[0]
IENavigate>%IE[0]%,https://secure.lccapital.net/,IEres
IEWaitDocumentComplete>%IE[0]%,IEres

// Log in to the site
IEClickTag>%IE[0]%,{""},{""},{"A"},{"TEXT"},{"Log In"},IEres
IEWaitDocumentComplete>%IE[0]%,IEres

IEClickTag>%IE[0]%,{""},{"ACTION:login.php"},{"INPUT"},{"INDEX"},{"0"},IEres
IEFormFill>%IE[0]%,{""},{"ACTION:login.php"},{"username"},{"lcctest"},0,IEres
IEFormFill>%IE[0]%,{""},{"ACTION:login.php"},{"password"},{"xyz123"},0,IEres

IEClickTag>%IE[0]%,{""},{"ACTION:login.php"},{"INPUT"},{"INDEX"},{"2"},IEres
IEFormSubmit>%IE[0]%,{""},{"ACTION:login.php"},IEres
IEWaitDocumentComplete>%IE[0]%,IEres

// select the document to download
IEClickTag>%IE[0]%,{""},{""},{"A"},{"TEXT"},{"Test"},IEres

Let>downloaded_filename=J:\PowerAdvisor\Files\Aviva\showfile.php
Let>downloaded_filesize=123
IEWaitFileDownload>showfile.php,IEres
// a file download window opens and the save button must be clicked by the user
// the program will not interact with it at this point
// the file is then downloaded but....
// the following message never displays - the progam is locked up at this point
// and will not time out.
MessageModal>File has been downloaded
IEOnDownload>0,J:\PowerAdvisor\Files\Aviva,IEres

IEClickTag>%IE[0]%,{""},{""},{"TD"},{"INDEX"},{"1"},ie_res
IEClickTag>%IE[0]%,{""},{""},{"A"},{"TEXT"},{"Log Out"},ie_res
IEWaitDocumentComplete>%IE[0]%,ie_res

Label>end_script
I really need this to work because when autmatic download is turned off the File Download window can't find the correct file as long as it is called by the macro. I hope someone will give me the clue I need to get this working.

Thanks,
David Williams

davidwms
Junior Coder
Posts: 23
Joined: Wed Aug 26, 2009 6:18 pm
Location: Madison, AL
Contact:

v14.0.15 gives the same results

Post by davidwms » Thu Sep 26, 2013 5:37 pm

I upgraded to version 14.0.15 but that did not change any of the results mentioned in my last post.
David Williams

User avatar
Marcus Tettmar
Site Admin
Posts: 7378
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Fri Sep 27, 2013 8:54 am

Hi,

You should see the WebRecorder download manager box:

Image

Here's a video showing it in action:
https://mjtnet.viewscreencasts.com/e182 ... 560ff05bd5

Do you have any security software running? I'm wondering if it is blocking the WebRecorder download manager.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts