ActiveWindow.prototype.compareDocument = function (title, options) {
    options = options || {};

    return when(this.captureDocument(options), function (buffer) {
        return this.getDriver()._comparison.compare(title, buffer, options.compare);