Unable to Swipe to a new screen on iOS Simulator

Hi All,

I wonder if it is possible to swipe to a new screen on iOS simulator from left to right gesture.
I see old posts people have had problems swipe to a new screen from /Simulator/iOS simulator.

Current Version:

I tried following two options, but didn’t even move slightly.
not sure whether i am using correctly.

I am using appium version: 5.0.0-BETA9

caps.setCapability(MobileCapabilityType.PLATFORM_NAME, MobilePlatform.IOS);
caps.setCapability(MobileCapabilityType.PLATFORM_VERSION, “10.3”);
caps.setCapability(MobileCapabilityType.DEVICE_NAME, “iPhone 6”);
caps.setCapability(MobileCapabilityType.APP, “https://s3.amazonaws.com/appium/TestApp8.4.app.zip”);
caps.setCapability(MobileCapabilityType.NO_RESET, true);

Also, i am running from Appium Desktop on iOS.


int x = driver.manage().window().getSize().getWidth();
int y = driver.manage().window().getSize().getHeight();

new TouchAction(driver).press(x, y).waitAction(5000).moveTo(x+400,y).release().perform();

driver.swipe(x, y, x+700, y, 5000);

I need to confirm whether i am able to perform swipe to a new screen page from the iOS simulator.