camme/webdriverjs — pull request #75 by ybendana (2013-08-02 17:41:32+00:00)
Title: Changed writeFile to asynchronous and made options an Object.

I was getting a timeout in my Mocha test using takeScreenshot, probably due to an exception being thrown. Making these changes resolved the issue. Since writeFileSync doesn't accept a callback parameter I changed it to asynchronous writeFile.