Forum Discussion
HKosova
Alumni
9 years agoHi Garbiela,
Try calling the Close method of the page that is inside that browser window. This should automatically close that browser window (assuming there are no other pages in that window).
For example, suppose you have two windows opened:
+-----------------+ | smartbear.com | | | +-----------------+
+-----------------+ | example.com | | | +-----------------+
To close the window with example.com, you can use:
// JScript Aliases.browser.AliasOfTheExamplePage.Close(); Sys.Browser().Page("http://example.com/").Close();