Created
June 28, 2014 22:02
-
-
Save anonymous/2ef95d9989eed32d733b to your computer and use it in GitHub Desktop.
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
var page = require('webpage').create(); | |
page.onConsoleMessage = function(msg) { | |
console.log('CONSOLE: ' + msg); | |
}; | |
// your code... | |
page.content = "<script>setInterval(function(){console.log(!!window.callPhantom)}, 500);</script>"; | |
setTimeout(function(){ | |
phantom.exit(); | |
}, 1800); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment