mirror of https://github.com/vitalif/phantomjs
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
parent
e9a47eddee
commit
d831dea8c8
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue