Vaibhav K Vaibhav K - 1 year ago 124
Java Question

I am getting error while trying to check orientation of app?

I have trying following code but it displays error message:

Thread.sleep(5000); driver.rotate(org.openqa.selenium.ScreenOrientation.PORTRAIT);

Error message:-

An unknown server-side error occurred while processing the command.
(WARNING: The server did not provide any stacktrace information)

Answer Source

There seems to be a solution to the "Set the orientation, but app refused to rotate." error message. Your problem could be related to the fact that the app relies on the sensor to do rotation and doesn't allow the user to set it. This was the case for "maxski" at least:

"The problem was in Android app code. Devs should set orientation reliance to user not to censor."

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download