Skip to content
A stab at using page objects with mocha and webdriverjs.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


build status

A stab at using page objects with mocha and webdriverjs.

This is a first go at trying to apply the page object model pattern to functional tests using mocha and the webdriver js bindings. I wrote this out because I couldn't find any other examples elsewhere. Feel free to submit a pull request if you spot anything that could be done better.

Get started

You'll need to have the Chromedriver on your path. Grab it from here, and then make sure the location it is in is added to your PATH environment variable. To test it is setup correctly, try typing in a terminal:


If you get a message saying 'Starting Chromedriver' then you're good to go.

Next, clone the repo, and then install dependencies:

npm install

Then run the tests:

You can’t perform that action at this time.