Skip to content

Instantly share code, notes, and snippets.

@qcom
Last active December 18, 2015 05:09
Show Gist options
  • Save qcom/5730784 to your computer and use it in GitHub Desktop.
Save qcom/5730784 to your computer and use it in GitHub Desktop.
function foo() {
var things;
casper.thenOpen(url, function() {
things = casper.evaluate(function() {
var things = [];
$('.alphabody a').each(function() {
things.push($(this).text());
});
return things;
});
});
return things;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment