zulip/zerver/tests/frontend/casperjs/samples/each.coffee

15 lines
243 B
CoffeeScript
Raw Normal View History

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()