casper.thenOpen('https://www.example.com/oo/abcd', function() {
var selector = ".pv-entity__degree-info";
this.waitForSelector(selector,function success(){
console.log("table found");
var temp=this.evaluate(function(selector){
return document.querySelector(selector);
},selector);
console.log(temp);
},
function fail() {
console.log("oops");
}
);
});
我做错了吗?它返回null。任何帮助将不胜感激。