class Selenium::WebDriver::Alert

def accept

def accept
  @bridge.accept_alert
end

def dismiss

def dismiss
  @bridge.dismiss_alert
end

def initialize(bridge)

def initialize(bridge)
  @bridge = bridge
  # fail fast if the alert doesn't exist
  bridge.alert_text
end

def send_keys(keys)

def send_keys(keys)
  @bridge.alert = keys
end

def text

def text
  @bridge.alert_text
end