I am trying to get the device width using the commands Mobile.getDeviceWidth() and Mobile.getDeviceHeight. I am using Pixel 4, Pixel 4XL simulator from android studio and Samsung Galaxy S20FE real device. But I can see that on all these devices the value returned by the commands Mobile.getDeviceWidth() and Mobile.getDeviceHeight is smaller than the actual size of the device. I am using appium 1.19.1 and katalon 7.8.1. My issue seems similar to this one. But mine is related to height than width. http://forum.katalon.com/t/mobile-getelementwidth-pulled-a-different-width-value/35123. Please let me know if anyone has a solution for this.
Thank you,
NG