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.
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:
chromedriver
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:
node_modules/mocha/bin/mocha