Returning data from target page
Opened this issue · 3 comments
wrabit commented
In CasperJS I would write something like:
title = this.evaluate(function() {
return $.trim($('.title').text());
});
How can I achieve the same with this wrapper?
davidgv88 commented
+1!
davidgv88 commented
Whit this Pull Request you can do this:
$casper = new Casper();
$casper->start('http://example.com');
$casper->run();
$vars = $casper->getVars();
echo $vars['title'];