'Returns the text of current JavaScript alert.
By default the current JavaScript alert will be dismissed.
This keyword will fail if no alert is present. Note that
following keywords will fail unless the alert is
dismissed by this keyword or another like `Dismiss Alert`.'

@keyword
def get_alert_message(self, dismiss=True):

    if dismiss:
        return self._handle_alert(self.DISMISS_ALERT)
    else:
        return self._handle_alert()
