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) • 496 B
JavaScript
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);
}
};