Webdriverjs lets you control a browser or a mobile application with just a few lines of code. Creating automated tests is as easy as:

var webdriverjs = require('webdriverjs');
var options = { desiredCapabilities: { browserName: 'chrome' } };

    .title(function(err, res) {
        console.log('Title was: ' + res.value);

It's key points are:

  • Provides over 50 useful actions to operate with your application
  • Supports selenium tests in the cloud
  • Compatible to all NodeJS test frameworks
  • Easy to use, easy to extend

How does it works?

WebdriverJS is an open source testing utility for nodejs. It makes it possible to write super easy selenium tests with Javascript in your favorite BDD or TDD test framework. Even Cucumber tests are supported.

It basically sends requests to a Selenium server via the WebDriver Wire Protocol and handles with its response. These requests are wraped in useful commands, which provides callbacks to test several aspects of your site in a automated way.