cyanidemonkey Posted September 5, 2014 Posted September 5, 2014 (edited) Hi guys, I am writing an automated website test script and have a page with some download links to test. The site is in ASP.NET MVC, the download link is like this: https://websiteurl.com/services/download?linkAddress=download%2Finteractive-sdk.zip I can click the link via the DOM and IE11 brings up the download message at the botton of the window. When I used Au3Info.exe and mouse over the download dialog I see: >>>> Control <<<< Class: DirectUIHWND Instance: 1 ClassnameNN: DirectUIHWND1 Name: Advanced (Class): [CLASS:DirectUIHWND; INSTANCE:1] ID: Text: etc... I tried using: WinGetClassList() But it showed the class name "DirectUIHWND1" before and after download dialog appeared in browser. so I thought maybe it was just hidden, so I tried: ControlCommand( "[CLASS:DirectUIHWND; INSTANCE:1]", "", "", "IsVisible", "") but is returned 0 both before and after download dialog appeared in browser. So I guess I am going about it the wrong way. Does anyone have an idea, or exampe of checking for the IE11 download dialog or perhaps another method of verifying the file is availble for download? Edited September 5, 2014 by cyanidemonkey My AutoIt Scripts.- AutoHost and Password Enabler for Delta Force 2 Demo.| Caffine for Winamp 2.9x and WRS 2.0 | mp3 directory cleaner | CRAP DJ | A:B:J Radio Automation Software | FFMPEG batch conversion automator
Moderators JLogan3o13 Posted September 5, 2014 Moderators Posted September 5, 2014 If you look through the IUIAutomation thread in the Examples forum, I know there is a post in there specifically about clicking the download button in IE (the post # escapes me at the moment). '?do=embed' frameborder='0' data-embedContent>> "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
Inververs Posted September 8, 2014 Posted September 8, 2014 This dialog is [CLASS:Frame Notification Bar; INSTANCE:1]
cyanidemonkey Posted September 10, 2014 Author Posted September 10, 2014 (edited) Thanks for your help guys. Got there in the end with: Local $hWindow $hWindow = WinGetHandle( "[CLASS:IEFrame]" ) ; Internet Explorer ControlCommand ( $hWindow, "", "[CLASS:Frame Notification Bar; INSTANCE:1]", "IsVisible", "" ) It at least returns 0 before the download button is clicked and 1 after button clicked, so is enough to verify the dialog showed up at least. Edited September 10, 2014 by cyanidemonkey My AutoIt Scripts.- AutoHost and Password Enabler for Delta Force 2 Demo.| Caffine for Winamp 2.9x and WRS 2.0 | mp3 directory cleaner | CRAP DJ | A:B:J Radio Automation Software | FFMPEG batch conversion automator
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now