How to change orientation

hi Friends…

please give me the solution for changing orientation of native app

Hi Kirtiman,

To rotate the screen to Portrait and Landscape by the following code
driver.rotate(ScreenOrientation.PORTRAIT);
driver.rotate(ScreenOrientation.LANDSCAPE);

To get the current screen orientation value by this code
ScreenOrientation orientation= driver.getOrientation();
orientation.value()

hii.
i tried with the above code,but nothing is happening,
do u have any video for this?or any solution…

Is your app is supporting ScreenOrientation or not?.could you please check it first.

manually, screen rotation is happening.
if we rotate device.