Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
casperjs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
0051fe74
...
0051fe747134e09a4fd7d7f4ad80bfe63bedef77
authored
2013-11-14 06:15:01 -0800
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge pull request #709 from clochix/patch-3
Add documentation for ClientUtils.log()
2 parents
68d40112
e3d116f6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
docs/modules/clientutils.rst
docs/modules/clientutils.rst
View file @
0051fe7
...
...
@@ -292,6 +292,19 @@ To get the form values::
__utils__.getFormValues('form#login'); // {username: 'foo', password: 'bar'}
.. index:: log
``log()``
-------------------------------------------------------------------------------
**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``.
casper.start('http://foo.ner/').thenEvaluate(function() {
__utils__.log("We've got a problem on client side", 'error');
});
``mouseEvent()``
-------------------------------------------------------------------------------
...
...
Please
register
or
sign in
to post a comment