kapoorlakshya Posted July 29, 2019 Share Posted July 29, 2019 Operating System: Windows 10 Browser: Internet Explorer 11 Script ; Internet Explorer specific script to press ALT+S shortcut to 'Save' the file. ; Sources: ; https://www.autoitscript.com/forum/topic/154472-ie-download-saveopen-dialog-how-to-access/?do=findComment&comment=1214450 ; https://www.autoitscript.com/forum/topic/199259-issues-in-integrating-autoit-with-jenkins/?do=findComment&comment=1429922 ControlSend("[CLASS:IEFrame]", "", "", "!s") ; Send ALT+S to save file The Jenkins agent is not running as a service, but in a CMD window so that Selenium can properly interact with the browser(s). Expected Behavior ALT+S shortcut should be sent to the download manager so that the 'Save' action is triggered. Actual Behavior Instead of triggering the 'Save' action, the focus some times switches to the download manager and stays there. Selenium then times out as the focus is not switched back to the active IE window. I even tried different scripts to focus on the download manager and then click on the 'Save' button, but that has the same problem. Basically, every solution I've found on this forum has yielded the same result on Jenkins 2/3 times. Works every time on my local machine though. This is what it looks like when in focus: Any idea what's causing this and how to avoid it? Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted July 29, 2019 Moderators Share Posted July 29, 2019 (edited) Moved to the appropriate forum, as the Developer General Discussion forum very clearly states: Quote General development and scripting discussions. If it's super geeky and you don't know where to put it - it's probably here. Do not create AutoIt-related topics here, use the AutoIt General Help and Support or AutoIt Technical Discussion forums. Moderation Team Edited July 29, 2019 by JLogan3o13 "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! Link to comment Share on other sites More sharing options...
kapoorlakshya Posted July 30, 2019 Author Share Posted July 30, 2019 Thanks for moving the topic here. I didn't notice the warning in bold at the top of the forum. It would be helpful to place it on the forum index because that's what I looked and figured my question is "Scripting" related. Link to comment Share on other sites More sharing options...
kapoorlakshya Posted July 30, 2019 Author Share Posted July 30, 2019 Nevermind. I just realized there is a whole forum dedicated to "AutoIT v3", so I should have read through the options more carefully. Link to comment Share on other sites More sharing options...
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