Changing device orientation not changing device dimensions

Hello :slight_smile:,

While automating Android and iOS Apps I’ve noticed that upon calling driver.rotate(ScreenOrientation.LANDSCAPE) the device dimensions won’t change.

I’m getting the same Device Height&Width when calling driver.manage().window().getSize().width; driver.manage().window().getSize().height;
after changing the orientation, thus cannot locate elements properly.

Is this the expected behaviour ?