Commit 113dcf68 113dcf68bc3c0faaa380803fdca90858f6e754f4 by Nicolas Perriault

added docs for Casper#unwait(); version infos

1 parent 804c1160
...@@ -408,6 +408,8 @@ encode:: ...@@ -408,6 +408,8 @@ encode::
408 408
409 **Signature:** ``bypass(Numbr nb)`` 409 **Signature:** ``bypass(Numbr nb)``
410 410
411 .. versionadded:: 1.1
412
411 Bypasses a given number of defined navigation steps:: 413 Bypasses a given number of defined navigation steps::
412 414
413 casper.start(); 415 casper.start();
...@@ -1457,6 +1459,8 @@ To run all the steps you defined, call the `run()`_ method, and voila. ...@@ -1457,6 +1459,8 @@ To run all the steps you defined, call the `run()`_ method, and voila.
1457 1459
1458 **Signature:** ``thenBypass(Number nb)`` 1460 **Signature:** ``thenBypass(Number nb)``
1459 1461
1462 .. versionadded:: 1.1
1463
1460 Adds a navigation step which will bypass a given number of following steps:: 1464 Adds a navigation step which will bypass a given number of following steps::
1461 1465
1462 casper.start('http://foo.bar/'); 1466 casper.start('http://foo.bar/');
...@@ -1477,6 +1481,8 @@ Adds a navigation step which will bypass a given number of following steps:: ...@@ -1477,6 +1481,8 @@ Adds a navigation step which will bypass a given number of following steps::
1477 1481
1478 **Signature:** ``thenBypassIf(Mixed condition, Number nb)`` 1482 **Signature:** ``thenBypassIf(Mixed condition, Number nb)``
1479 1483
1484 .. versionadded:: 1.1
1485
1480 Bypass a given number of navigation steps if the provided condition is truthy or is a function that returns a truthy value:: 1486 Bypass a given number of navigation steps if the provided condition is truthy or is a function that returns a truthy value::
1481 1487
1482 var universe = { 1488 var universe = {
...@@ -1502,6 +1508,8 @@ Bypass a given number of navigation steps if the provided condition is truthy or ...@@ -1502,6 +1508,8 @@ Bypass a given number of navigation steps if the provided condition is truthy or
1502 1508
1503 **Signature:** ``thenBypassUnless(Mixed condition, Number nb)`` 1509 **Signature:** ``thenBypassUnless(Mixed condition, Number nb)``
1504 1510
1511 .. versionadded:: 1.1
1512
1505 Opposite of `thenBypassIf()`_. 1513 Opposite of `thenBypassIf()`_.
1506 1514
1507 ``thenClick()`` 1515 ``thenClick()``
...@@ -1607,6 +1615,15 @@ Returns a string representation of current Casper instance:: ...@@ -1607,6 +1615,15 @@ Returns a string representation of current Casper instance::
1607 1615
1608 casper.run(); 1616 casper.run();
1609 1617
1618 ``unwait()``
1619 -------------------------------------------------------------------------------
1620
1621 **Signature:** ``unwait()``
1622
1623 .. versionadded:: 1.1
1624
1625 Abort all current waiting processes, if any.
1626
1610 .. index:: User Agent 1627 .. index:: User Agent
1611 1628
1612 ``userAgent()`` 1629 ``userAgent()``
......