From 129cc966b931593180f9407f24fae3e1c168353d Mon Sep 17 00:00:00 2001 From: Safi Date: Thu, 6 Sep 2018 13:17:07 -0500 Subject: [PATCH] fix(appium): swipe logic for iOS should use absolute coordinates --- .../main/java/org/getopentest/appium/core/AppiumTestAction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actor/appium/src/main/java/org/getopentest/appium/core/AppiumTestAction.java b/actor/appium/src/main/java/org/getopentest/appium/core/AppiumTestAction.java index f1d58bb2..29d9e1c8 100644 --- a/actor/appium/src/main/java/org/getopentest/appium/core/AppiumTestAction.java +++ b/actor/appium/src/main/java/org/getopentest/appium/core/AppiumTestAction.java @@ -351,7 +351,7 @@ protected void swipe(int fromX, int fromY, int toX, int toY) { } protected void swipe(int fromX, int fromY, int toX, int toY, int durationMs) { - if (AppiumHelper.isPlatform("ios") && AppiumHelper.getConfig().getBoolean("appium.useRelativeCoordsIos", true)) { + if (AppiumHelper.isPlatform("ios") && AppiumHelper.getConfig().getBoolean("appium.useRelativeCoordsIos", false)) { // In Appium 1.7.1, the TouchAction.moveTo() method assumes absolute // coordinates for Android but relative coordinates for iOS. The mess that // follows below is necessary to work around this inconsistency.