MCPcopy
hub / github.com/codeceptjs/CodeceptJS / setOrientation

Method setOrientation

lib/helper/Appium.js:762–770  ·  view source on GitHub ↗

* Set a device orientation. Will fail, if app will not set orientation * * ```js * I.setOrientation('PORTRAIT'); * I.setOrientation('LANDSCAPE') * ``` * * @param {'LANDSCAPE'|'PORTRAIT'} orientation LANDSCAPE or PORTRAIT * * Appium: support Android and iOS

(orientation)

Source from the content-addressed store, hash-verified

760 * Appium: support Android and iOS
761 */
762 async setOrientation(orientation) {
763 onlyForApps.call(this)
764
765 return this.axios({
766 method: 'post',
767 url: `${this._buildAppiumEndpoint()}/orientation`,
768 data: { orientation },
769 })
770 }
771
772 /**
773 * Get list of all available contexts

Callers 3

Appium_test.jsFile · 0.80
AppiumTs.types.tsFile · 0.80
Appium.types.tsFile · 0.80

Calls 1

_buildAppiumEndpointMethod · 0.95

Tested by

no test coverage detected