Update example

Since this example was written the phantomjs home page has been redesigned and the targeted ID no longer exists. This tweaks the example so that it can again find content to report.
1.x
petercoles 2014-03-01 07:16:48 +00:00 committed by Ivan De Marino
parent e9a47eddee
commit d831dea8c8
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ page.open("http://www.phantomjs.org", function(status) {
if ( status === "success" ) {
page.includeJs("http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js", function() {
page.evaluate(function() {
console.log("$(\"#intro\").text() -> " + $("#intro").text());
console.log("$(\".explanation\").text() -> " + $(".explanation").text());
});
phantom.exit();
});