In the following example, we'll query google for two terms consecutively, `capserjs` and `phantomjs`, and aggregate the result links in a standard Array. Then we'll output the result to the console:
``` javascript
phantom.injectJs('casper.js');
functiongetLinks(){
varlinks=document.querySelectorAll('h3.r a');
returnArray.prototype.map.call(links,function(e){
...
...
@@ -66,7 +68,7 @@ var casper = new phantom.Casper({