Article http://davidwinter.me/articles/2012/01/14/testing-javascript-websites-with-behat/ explained. Extended composer.json Example updated. Related repository: https://github.com/davidwinter/Testing-Javascript-websites-with-Behat