Jump to content

Internet Explorer 11 on Jenkins - Sending ALT+S to save a file is intermittently failing. - (Moved)


Recommended Posts

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:

ie_dm_focus.png.75ba09dbb376cfc4f27b8a52903aee96.png

Any idea what's causing this and how to avoid it?

 

Link to post
Share on other sites
  • Moderators

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 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 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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...