Yusufm87
6 years agoContributor
How to close Excel window cleanly
Hi,
I need to close Excel application opened using TestApps["EXCEL"]["Run"] method.
I have tried closing the excel using the TestedApp["Close"]() method but it only closes the Excel window.
The "EXCEL.EXE" process keeps running in the background.
Could anyone show me how can I close Excel so that the background process also gets terminated just like how it works when we manually close an open Excel window.
I have used TestedApp["Terminate"](); method but it causes issues in further iterations where I need to wor on Excel.
Thanks,
Yusuf Malak