CasperJS - Behavioral Test for web application


Objective :

To explore CasperJS as a framework for automation testing for the web applications.

Most of the times, all you want is an automated way to ensure that your application is functioning properly at a high level. But do you really need to write mountains of Unit tests to achieve this? Moreover, can unit tests even achieve this at all? And when it comes to front-end behavior, how do you write effective tests?

CasperJS is an answer of all the questions mentioned above. CasperJS is a navigation scripting & testing utility for PhantomJS and SlimerJS written in JavaScript.

In this session, we will demonstrate:

-PhantomJS and CasperJS Introduction

-Features of CasperJS

-Playing with Casper API

-Headless demo with real world example

-How to test-

–HTTP authentication

–Mouse events

–Submitting forms

–Impersonating user agents

–Making AJAX requests

-How to minimize regressing testing with CasperJS

Target Audience:
Team Leads/Technical Architect/Project Managers/Developers/QA Folks


About Ravindra

Ravindra ( is a Technical Architect at Srijan. With an experience of working on multiple JS projects, he has a good understanding on core JavaScript which helps him to explore the JS frameworks easily.

Ravindra is a open source contributor (like he is contributing to Drupal 8 core and modules). Being a TA he is supposed to research on the best solutions from open-sources, and started research in testing frameworks like CasperJS and Behat which are faster by their headless nature. At the recently held DrupalCon in Los angeles, he was selected as a mentor for Drupal8 contribution.

Ravindra has been a speaker in various events. Below are some of the recent events where he presented a session.

Session Track

Coding and Development

Experience Level


Drupal Version