We'll respond shortly.
In a Webrat/Selenium test how do we close a window in order to return focus to the previous window?
At any time, you can
window.close(). Or since you’re using Selenium, why not just bust out some Selenium calls to close windows and/or change focus.