setScreenOrientation method

Class: ChromeEmulationInfoPlatform: Selenium 3Language: Java SDK:

Use this method to set if the device is portrait or landscape

Syntax


obj.setScreenOrientation(screenOrientation);

Parameters

screenOrientation
Type:ScreenOrientation
screenOrientation

Return value

Type: void