Open wrabit opened 7 years ago
+1!
Created Pull Request #51
Whit this Pull Request you can do this:
$casper = new Casper(); $casper->start('http://example.com'); $casper->evaluateToVar('title','return $.trim($('.title').text());'); $casper->run();
$vars = $casper->getVars(); echo $vars['title'];
In CasperJS I would write something like:
How can I achieve the same with this wrapper?