helpdesk
6 years agoOccasional Contributor
Script To Automatically Close 'Active' Window
Hi all,
I have another question that may sound silly. The application I am testing will open patient records in 2 different ways, half will be maximised view and the other half is a minimised v...
- 6 years ago
Hi,
I assume that you are working with a desktop application...
Usually, desktop windows have .Close() method that closes them. Check this with Object Browser.
Alternatively, you may send keys combination to the window that closes it. Usually this is Ctrl-F4 or Ctrl-W.
Both approaches should close the target window without the necessity to click its Close button.
- 6 years ago
Thank you very much - Control F4 closes any active window within the application.
I appreciate the response :)