orientation
Protocol bindings for all mobile orientation operations. (Not part of the official Webdriver specification).
Usage
1 | browser.orientation([deviceOrientation]); |
Parameters
Param | Type | Details | |
---|---|---|---|
deviceOrientation optional |
String | The new browser orientation as defined in ScreenOrientation: `{LANDSCAPE | PORTRAIT}` |
Example
1 | it('should set/get orientation using protocol command', function () { |
Returns
- <String>: device orientation (
LANDSCAPE/PORTRAIT
)
Support