capybara/window.py
def current(self):
        """ bool: Whether this window is the window in which commands are being executed. """
        try:
            return self.driver.current_window_handle == self.handle
        except self.driver.no_such_window_error:
            return False
def current(self):
        """ bool: Whether this window is the window in which commands are being executed. """
        try:
            return self.driver.current_window_handle == self.handle
        except self.driver.no_such_window_error:
            return False
bool: Whether this window is the window in which commands are being executed.