.setLandscape()
Sets the device orientation to landscape.
Usage
device.setLandscape()
Returns
Promise
: A promise that resolves once the orientation has been set.
Support
Platform | Supported |
---|---|
iOS | Yes |
Android | Yes |
Web | Unknown |
Examples
Set device orientation to landscape:
const { device, expect } = require("appdriver");
(async () => {
await device.setLandscape();
return expect(device.isPortrait()).toBeFalsy();
})();