* 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)
| 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 |
no test coverage detected