swipe in ios appium

hi frnds, i am able to swipe left using below code but it always swipe 2nd row of cell, is there any way to make it dynamic?
code for swipe is
JavascriptExecutor js = (JavascriptExecutor) driver;
HashMap<String, String> scrollObject = new HashMap<>();
scrollObject.put(“direction”, “left”);
js.executeScript(“mobile: scroll”, scrollObject);

Train Asked on April 21, 2017 in Appium.
Add Comment
  • 0 Answer(s)
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.