title: Swipe functionality working locally but fails on device farm
body: <p>I am trying to run a simple swipe function for an iOS app. The swipe functionality that I'm using is something like this:</p>
  
  <pre><code> public static void swipe (AppiumDriver&lt;?&gt; driver, WebElement element, String direction ) throws Exception {
      int startX = element.getLocation().getX();
      int startY = element.getLocation().getY();
      int endX = element.getLocation().getX();
      int endY=element.getLocation().getY();
  
      switch (direction){
      case  "left":
          System.out.println(startX);
          startX += element.getSize().getWidth();
          endX = -(element.getSize().getWidth());
          break;
      case "right":
          startX = 0;
          endX +=element.getSize().getWidth();
          break;
      case "up":
          startY += element.getSize().getHeight();
          endY =  -element.getSize().getHeight();
          break;
      case "down":
          endY += driver.manage().window().getSize().getHeight();
          break;
      default:
          throw new Exception("invalid direction, must be left/right/up/down");
      }
      //driver.swipe(startX, startY, endX, endY, 1000);
   new TouchAction(driver).press(startX, startY).waitAction(1000).moveTo(endX, 
         endY).release().perform();
      System.out.println(startX +" " + startY+ " " + endX+ " " +endY);
  
  }
  </code></pre>
  
  <p>The default capabilities I'm using locally are:</p>
  
  <pre><code>"platformName": "iOS"
  "platformVersion": "10.3"
  "automationName": "Appium"
  "deviceName": "iPhone 7"
  </code></pre>
  
  <p><em>I have tried with the same desired capabilities locally and its working fine on the simulator. I am running it on the same device(i in the device farm.</em></p>
  
  <p>I am also using the <strong>Appium v1.6.5</strong> locally as well as in device farm.</p>