getOrientation
Get the current browser orientation. This command only works for mobile environments like Android Emulator, iOS Simulator or on real devices.
Usage
1 | browser.getOrientation(); |
Example
1 | it('should get the orientation of my mobile device', function () { |
Returns
- <String>: device orientation (
landscape/portrait
)
Support