I am currently trying to fetch json values(mainly urls) from a GET call and assign this to a variable. I would ultimlately like to loop through the values and open each url with casper. However, I seen to have the incorrect concept on fetching values through an ajax call with casperjs. I read through the documentation but dont seem to understand why I am still getting error ReferenceError: Can't find variable: __utils__
?
casper.start();
var url = "http://dev.web-ui.com/generate.php";
casper.then(function(url) {
var results = __utils__.sendAJAX(url, "GET");
});
casper.run();