Rotate in Mobile Chrome

Hi guys.

rotate operation doesn’t support on mobile web (chrome).

driver.rotate(ScreenOrientation.LANDSCAPE);
org.openqa.selenium.WebDriverException: unimplemented command: session/630f1bc6711630680aaa5df288d63726/orientation

Is it unimplemented because Chromedriver doesn’t implement this feature like Touchgesture?
So my question is: Is there any workaround for this issue.

I use Appium 1.2.0.1 on Windows

Regards

Yup, @jlipps has written a fix for this, and I think it’s already been committed to master.

The problem still reproduces for me. My Appium version is 1.2.3.1 (for Windows).

Same here Appium 1.2.3 (windows)

reported issue on github…

So, my workaround is:

driver.context("NATIVE_APP");
driver.rotate(ScreenOrientation.LANDSCAPE);
driver.context("WEBVIEW_1");
2 Likes