nightwatch
Version:
Easy to use Node.js based end-to-end testing solution for web applications using the W3C WebDriver API.
22 lines (20 loc) • 518 B
JavaScript
const ProtocolAction = require('./_base-action.js');
/**
* Get the current page title.
*
* @example
* this.demoTest = function (browser) {
* browser.title(function(result) {
* console.log(result.value);
* });
* }
*
* @link /#get-title
* @param {function} callback Callback function which is called with the result value.
* @api protocol.navigation
*/
module.exports = class Action extends ProtocolAction {
command(callback) {
return this.transportActions.getPageTitle(callback);
}
};