nightwatch
Version:
Easy to use Node.js based end-to-end testing solution for web applications using the W3C WebDriver API.
15 lines (13 loc) • 441 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
*/
module.exports = class Session extends ProtocolAction {
command(callback) {
return this.transportActions.getScreenOrientation(callback);
}
};