class Capybara::Window

def close


current window should remain the same as it was before calling this method.
If this method was called for window that is not current, then after calling this method
@!macro about_current

{Capybara::Driver::Base#no_such_window_error session.driver.no_such_window_error} until another window will be switched to.
future invocations of other Capybara methods should raise
If this method was called for window that is current, then after calling this method

Close window.
#
def close
  @driver.close_window(handle)
end