title: I can't make swipe gesture work for me in Appium using Java
body: <p>I can't made Swipe action work. I did browsed through the web for a few days and found many similar questions but there is no working answer. Also I have tried TouchAction class, doesn't work as well.  </p>
  
  <p>I have Appium Version 1.4.13 (Draco) and using Java, TestNG framework. </p>
  
  <p>btw I made scrolling work using (you can use the same logic as a pull to refresh) here is code sample. </p>
  
  <pre><code>public void scrollUp() {
      JavascriptExecutor js = (JavascriptExecutor) getDriver();
      HashMap&lt;String, String&gt; scrollObject = new HashMap&lt;String,String();
      scrollObject.put("direction", "up");
      scrollObject.put("element", listElements.get(1).getText());
      js.executeScript("mobile: scroll", scrollObject);
  }
  </code></pre>