'On using Appium, it provides smaller mobile screen resolution than the original value

Dimension windowSize = driver.manage().window().getSize();

when is use this command it provides smaller resolution of all the device that i connect either virtual or a real device, the height is always smaller than original value. How can i solve this because this is affecting UI validation a lot and I cannot use applitools for UI comparison.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source