UNPKG

nightwatch

Version:

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

16 lines (14 loc) 468 B
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); } };