jmreidy / grunt-mocha-webdriver

Grunt task to run Mocha tests against a WebDriver source - either PhantomJS or Sauce Labs
MIT License
36 stars 17 forks source link

How to output whole HTML source code? #44

Closed binarykitchen closed 10 years ago

binarykitchen commented 10 years ago

Just wondering ... I need that functionality for debugging

saadtazi commented 10 years ago

.eval('document.documentElement.innerHTML').then(function(htmlString) {...}) ... or maybe `.execute('return document.documentElement.innerHTML').then(function(htmlString) {...}) ?

binarykitchen commented 10 years ago

Ah, there is a source command, see https://github.com/admc/wd/blob/master/doc/jsonwire-full-mapping.md