added version note for Casper#waitForAlert()
Showing
1 changed file
with
2 additions
and
0 deletions
... | @@ -2032,6 +2032,8 @@ This can be used for better error messages or to conditionally ignore some timeo | ... | @@ -2032,6 +2032,8 @@ This can be used for better error messages or to conditionally ignore some timeo |
2032 | 2032 | ||
2033 | **Signature:** ``waitForAlert(Function then[, Function onTimeout, Number timeout])`` | 2033 | **Signature:** ``waitForAlert(Function then[, Function onTimeout, Number timeout])`` |
2034 | 2034 | ||
2035 | .. versionadded:: 1.1-beta4 | ||
2036 | |||
2035 | 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:: | 2037 | 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:: |
2036 | 2038 | ||
2037 | casper.waitForAlert(function(response) { | 2039 | casper.waitForAlert(function(response) { | ... | ... |
-
Please register or sign in to post a comment