UNPKG

nightwatch

Version:

Easy to use Node.js based end-to-end testing solution for web applications using the W3C WebDriver API.

17 lines (16 loc) 552 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const ProtocolAction = require('./_base-action.js'); /** * Returns a string serialisation of the DOM of the current page. * * @link /#getting-page-source * @param {function} callback Callback function which is called with the result value. * @api protocol.document * @deprecated In favour of `.document.source()`. */ module.exports = class Session extends ProtocolAction { command(callback) { return this.transportActions.getPageSource(callback); } };