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: