clee
August 15, 2017, 9:08pm
1
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:
Swipe just does not work for me at all in v 1.6.4-beta, java client 5.0.0-BETA4, iOS 10 real device.
I am using the following options to swipe but get the same error:
Option 1: driver.swipe(startX, startY, endX, endY, 1000);
Option 2: new TouchAction((MobileDriver) appiumDriver).press(startX, startY).waitAction(100)
.moveTo(endX - startX, endY - startY).release().perform();
Option 3: Using mobile: swipe
but am getting this
Error:
org.openqa.selenium.WebDriverException: An unknown server-…
I have tried with below method for swipe gestures.
I need to swipe across photo gallery images both left to right and vice versa.
I have tried so many solutions, but nothing worked at all.
I am searching for reliable solution for swipe gestures for iOS app.
I am using iOS simulator 8.3 version and java as language.
If any one got swipes successfully in simulator means, please provide an solution.
Really, I got struck with this swipe gestures, I don’t how to proceed. Please help me.
// method …
I am trying to automate one news app on Android. This app consists of section pages placed horizontally. While swiping horiztonally from one section page to another, the swipe misses (page swipes a little but does not go to next / previous page) and does not go to the next / previous page. This issue occurs intermittently. Is there any way to handle swipe-miss in appium? Here is swipe code I am using for swiping from right to left:
int startX = (int) (getDeviceSize(androidDriver).width * 0.80); …
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.
Codes:
int x = driver.manage().window().getSize().getWidth();
int y = driver.manage().window().getSize().getHeight();
Option1:
new TouchAction(driver).press(x, y).waitAction(5000).moveTo(x+400,y).release().perform();
Option2:
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.