beatfactor/nightwatch — pull request #217 by davidlinse (2014-07-27 11:23:44+00:00)
Title: Add get page source protocol

Add implementation for _JsonWireProtocol_ `/session/:sessionId/source`. including updated _mocks_, new and passing tests.

```js
// minimal sample
browser
.url('http://nightwatchjs.org')
.source(function(result) {
var match = result.value.indexOf('

Nightwatch.js

') > -1;
browser.assert(match, 'Found matching

tag');
})
.end();
```

Let me know what you think.

regards
~david