Sign in to follow this  
Followers 0
haisuleo

Trouble with IE file download pop up

5 posts in this topic

Hello,

I am having trouble with the "File Download - Security Warning" pop up window on IE. I am trying to download file from https site. After log in and go to the page with the list of available download, after the _IELinkClick was sent, the pop up window showed up and the script went to pause, nothing happen no matter command I used. I tried WinExists("File Download - Security Warning") after _IELinkClick, and sleep(500) but that command doesn't run.

Any help greatly appreciated.

Thang

Share this post


Link to post
Share on other sites



Did you set the $f_wait = false in _IELinkClickByIndex() or _IELinkClickByText()? Your script may be blocked at that point.

:D


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

thanks, PsaltyDS,

No, I didn't set it. Does it set by default? Below is my codes:

$iDownloadTitle = "File Download - Security Warning"

$vFrame = _IEFrameGetObjByName($oIE, "View_Frame")

$vLinks = _IELinkGetCollection($vFrame)

$vNumberLinks = @extended

If $vNumberLinks > 0 Then

_IELinkClickByIndex($vFrame, 0)

EndIf

If (WinExists($iDownloadTitle)) Then

ConsoleWriteError("exist")

Else

ConsoleWriteError("doensn't exist")

EndIf

Thanks

Share this post


Link to post
Share on other sites

Look at the function in the help file, it shows $f_wait = 1 by default. Try _IELinkClickByIndex($vFrame, 0, 0) instead and then enough of a sleep() for the pop up to occur.

Also, since your click is conditional, why look for the pop up even if you didn't do the click?

:D


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

I tried to take control of the pop up window to send a click on Save button.

I changed IELinkClickByIndex($vFrame, 0, 0), sleep(1000). It worked.

Thank you very much,

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0