**Signature:** ``waitForAlert(Function then[, Function onTimeout, Number timeout])``
Waits until a `JavaScript alert <https://developer.mozilla.org/en-US/docs/Web/API/Window.alert>`_ is triggered. The step function will be passed the alert message in the ``response.data`` property::