# Change device orientation Landscape/Portrait

**URL:** https://forum.robotframework.org/t/change-device-orientation-landscape-portrait/9182
**Category:** Robot Framework
**Created:** [18 August 2025 11:15 UTC](https://forum.robotframework.org/t/change-device-orientation-landscape-portrait/9182 "2025-08-18T11:15:41Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Sumit](https://avatars.discourse-cdn.com/v4/letter/s/59ef9b/32.png) [@Sumit](https://forum.robotframework.org/u/Sumit)
#### Post date: [18 August 2025 11:15 UTC](https://forum.robotframework.org/t/change-device-orientation-landscape-portrait/9182/1 "2025-08-18T11:15:41Z")

</div>

Hello,

Im using AppiumLibrary , Want to know how i can change the device orientation while running the tests, i googles it and found out some of the keywords like ‘Rotate LANDSCAPE’ and some other keyword ‘Set Orientation’ ,. but none of them are working (getting keyword not found) , if someone has any idea, pls let me know.

thanks

---

<div class="post-metadata">

### Author: ![Sumit](https://avatars.discourse-cdn.com/v4/letter/s/59ef9b/32.png) [@Sumit](https://forum.robotframework.org/u/Sumit)
#### Post date: [19 August 2025 03:48 UTC](https://forum.robotframework.org/t/change-device-orientation-landscape-portrait/9182/2 "2025-08-19T03:48:22Z")

</div>

Just to add, during appium initialization by passing **orientation** = LANDSCAPE or POTRIAT it change the device orientation, but i want to change the device orientation after appium initialization

---

<div class="post-metadata">

### Author: ![CharlieScene](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/charliescene/32/3484_2.png) [@CharlieScene](https://forum.robotframework.org/u/CharlieScene)
#### Post date: [19 August 2025 07:41 UTC](https://forum.robotframework.org/t/change-device-orientation-landscape-portrait/9182/3 "2025-08-19T07:41:37Z")

</div>

Hi,

Did you simply tried LANDSCAPE and PORTAIT as mentioned in the keyword doc?

[https://serhatbolsu.github.io/robotframework-appiumlibrary/AppiumLibrary.html#Landscape](https://serhatbolsu.github.io/robotframework-appiumlibrary/AppiumLibrary.html#Landscape)

The rotate/set method are rather to use if you’re implementing in python directly I think.

Regards

Charlie
