class Capybara::Window
def raise_unless_current(what)
def raise_unless_current(what) raise Capybara::WindowError, "#{what} not current window is not possible." unless current? end
def raise_unless_current(what) raise Capybara::WindowError, "#{what} not current window is not possible." unless current? end