From a9994a0aac5512bcc328a73f132b8a08dcb6871c Mon Sep 17 00:00:00 2001 From: Zachary Grauerholz Date: Tue, 24 Sep 2019 20:31:19 -0500 Subject: [PATCH] fix: Swipe by Coordinates using delay (#4268) (#1090) Fix swipe command by adding a 500ms wait between press and moveTo --- app/main/appium-method-handler.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/main/appium-method-handler.js b/app/main/appium-method-handler.js index 964f5fa42..e9a75c1ba 100644 --- a/app/main/appium-method-handler.js +++ b/app/main/appium-method-handler.js @@ -134,6 +134,7 @@ export default class AppiumMethodHandler { const [startX, startY, endX, endY] = args; res = await (new wd.TouchAction(this.driver)) .press({x: startX, y: startY}) + .wait(500) .moveTo({x: endX, y: endY}) .release() .perform();