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) • 580 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const ProtocolAction = require('./_base-action.js');
/**
* Get the current browser orientation.
*
* @param {function} callback Callback function which is called with the result value.
* @returns {string} The current browser orientation: {LANDSCAPE|PORTRAIT}
* @api protocol.mobile
* @deprecated In favour of `.appium.getOrientation()`
*/
module.exports = class Session extends ProtocolAction {
command(callback) {
return this.transportActions.getScreenOrientation(callback);
}
};