Dimension dimension = driver.manage().window().getSize(); I am using Appium For Automation this code using for swiping down but when I use it on the real device then it does