Created
May 23, 2016 22:16
-
-
Save dpnishant/4f8d66c6ebd025637c6f1f632b08d440 to your computer and use it in GitHub Desktop.
This file contains 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(); | |
var system = require('system'); | |
page.onConsoleMessage = function(msg) { | |
system.stderr.writeLine('Console Message: ' + msg); | |
}; | |
page.onInitialized = function() { | |
page.evaluate(function() { | |
document.addEventListener('DOMContentLoaded', function() { | |
var div = document.querySelectorAll('div'); | |
}, false); | |
}); | |
}; | |
page.open('http://10.254.189.164/bottestapp/'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment