n1k0/casperjs — pull request #161 by Reinboom (2012-06-28 21:38:37+00:00)
Title: Feature: getElementAttribute, Tester.getFailures, Tester.getPasses

Issue 1: Numerous web applications we develop make extensive use of HTML5 data attributes. As this is a pretty standard use, having a way to quickly query for them could be quite valuable (and was valuable for me).

Issue 2: For our CI environment, having preemptive control of the exit code is a big win. To enable that knowledge about failures and passes should be available before the test results culminate.

Checking the testResults object would be bad, as that has nothing that would suggest it's final.