each.coffee 243 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 casper = require("casper").create() links = [ 'http://google.com/' 'http://yahoo.com/' 'http://bing.com/' ] casper.start() casper.each links, (self, link) -> @thenOpen link, -> @echo "#{@getTitle()} - #{link}" casper.run()