Commit 6d2afcce 6d2afcce3810c027d86942279f0e0c1399fda8a0 by Nicolas Perriault

minor docs fixes for clientutils

1 parent 06de6afc
......@@ -6,7 +6,11 @@
The ``clientutils`` module
==========================
Casper ships with a few client-side utilities which are injected in the remote DOM environment, and accessible from there through the ``__utils__`` object instance of the ``ClientUtils`` class from the ``clientutils`` module.
Casper ships with a few client-side utilities which are injected in the remote DOM environment, and accessible from there through the ``__utils__`` object instance of the ``ClientUtils`` class from the ``clientutils`` module::
casper.evaluate(function() {
__utils__.echo("Hello World!");
});
.. note::
......@@ -21,7 +25,7 @@ Bookmarklet
A bookmarklet is also available to help injecting Casper's client-side utilities in the DOM of your favorite browser.
Just drag the link above onto your favorites toobar; when clicking, a ``__utils__`` object will be available within the console of your browser:
Just drag the following link onto your favorites toobar; when clicking it, a ``__utils__`` object will be available within the console of your browser:
.. raw:: html
......@@ -299,7 +303,7 @@ To get the form values::
**Signature:** ``log(String message[, String level])``
Logs a message with an optional level. Will format the message a way CasperJS will be able to log phantomjs side. Default level is ``debug``.
Logs a message with an optional level. Will format the message a way CasperJS will be able to log phantomjs side. Default level is ``debug``::
casper.start('http://foo.ner/').thenEvaluate(function() {
__utils__.log("We've got a problem on client side", 'error');
......