getScreenOrientation method

Class: ChromeEmulationInfoPlatform: Selenium 3Language: Java SDK:

Use this method to retrieve if the device is portrait or landscape.

Syntax


ScreenOrientation value = obj.getScreenOrientation();

Parameters

This method does not take any parameters.

Return value

Type: ScreenOrientation