My automation downloads an Excel file from SAP Gui. However it is stuck as the Excel that is downloaded automatically opens after it is downloaded. I have tried to use Use Application Browser to close the open Excel but it doesn’t work.
This is the activity:
After downloaded and opened the Excel give some delay and use Kill Process activity or Close application activity to the kill the Excel application. In the process name field of kill process activity give EXCEL.exe it will close the Excel simply.
Or
If any case you are doing it in Studio X then use the use application and indicate the Excel then use click activity and indicate on close button to close the Excel.
This isn’t a very good recommendation as this can leave files corrupted, auto backups engaged (changing how Excel opens next time), interfere with other Excel windows that need to be open, etc.
It’s better to properly attach to, and close, the window