tikiwiki/packages/tiki-pkg-casperjs/jerome-breton/casperjs/samples/each.coffee

15 lines
243 B
CoffeeScript
Raw Permalink Normal View History

2023-11-20 21:52:04 +01:00
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()