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
    jshint 1.0.0 compliance · 82863faf
    82863faf
    Nicolas Perriault authored 2013-03-10 11:41:50 +0100
each.js 383 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
/*jshint strict:false*/
/*global CasperError, console, phantom, require*/

var casper = require("casper").create();

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

casper.start();

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

casper.run();