tikiwiki/packages/tiki-pkg-casperjs/jerome-breton/casperjs/samples/each.coffee
2023-11-20 20:52:04 +00:00

15 lines
243 B
CoffeeScript
Executable File

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