Skip to content
  • This project
    • Loading...
  • Sign in

John McEleney / casperjs

Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • casperjs
  • samples
  • each.js
  • Nicolas Perriault's avatar
    fixed CS CS standards & typos in samples · 3ffc42fa
    3ffc42fa
    Nicolas Perriault authored 2012-01-15 08:46:20 +0100
each.js 303 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
var casper = require('casper').create();

var links = [
    'http://google.com/',
    'http://yahoo.com/',
    'http://bing.com/'
];

casper.start().each(links, function(self, link) {
    self.thenOpen(link, function(self) {
        self.echo(self.getTitle() + ' - ' + link);
    });
});

casper.run();