Last active
August 29, 2015 14:04
-
-
Save kosamari/b4309eb232977d7006ba to your computer and use it in GitHub Desktop.
code to out put console message in phantomjs page into node.js console.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
code to out put console message in phantomjs page into node.js console. | |
*/ | |
page.set('onConsoleMessage', function (message) { | |
console.log('Phantom Console: ' + message); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment