module Alerts
Helpers for working with alerts.
session.dismiss_alert
session.accept_alert
session.alert_text
session.set_alert_text("Hello, World!")
Definitions
def dismiss_alert
Dismiss the current alert.
Implementation
def dismiss_alert
session.post("alert/dismiss")
end
def accept_alert
Accept the current alert.
Implementation
def accept_alert
session.post("alert/accept")
end
def alert_text
Get the text of the current alert.
Implementation
def alert_text
session.get("alert/text")
end
def set_alert_text(text)
Set the text input of the current alert.
Implementation
def set_alert_text(text)
session.post("alert/text", {text: text})
end