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) • 504 B
JavaScript
const ProtocolAction = require('./_base-action.js');
/**
* Get current context.
*
* @param {function} callback Callback function to be called when the command finishes.
* @returns {string|null} a string representing the current context or `null`, representing "no context"
* @api protocol.mobile
* @deprecated In favour of `.appium.getContext()`
*/
module.exports = class Session extends ProtocolAction {
command(callback) {
return this.transportActions.getCurrentContext(callback);
}
};