O'Reilly logo

Instant Testing with CasperJS by Éric Bréhault

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 1. Instant Testing with CasperJS

Welcome to Instant Testing with CasperJS. This book will cover how to practice efficient and solid web page testing using CasperJS. CasperJS is a cross-platform, command-line utility that is able to load and script any web page.

Installing CasperJS (Simple)

In this recipe, we will cover the steps to install CasperJS and its dependencies on Windows, Mac OS X, and Linux.

Getting ready

The CasperJS sources are managed on GitHub. So, to get them on our local machine, we need Git.

To install Git on Windows, we can use msysGit to deploy the Git command-line utility plus a graphical interface:

  1. Go to http://msysgit.github.io/.
  2. Go to the Downloads page.
  3. Download the latest version.
  4. Run the installer.

To install Git on Mac, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required