@hnallani..
Here is my code (I want to swipe from right to left)
JavascriptExecutor js = (JavascriptExecutor) iOS_Driver;
HashMap scrollObject = new HashMap ();
scrollObject.put("element", ((RemoteWebElement) iOS_Driver.findElement(By.xpath("//UIAApplication[1]/UIAWindow[1]/UIAScrollView[1]/UIAScrollView"))).getId());
js.executeScript("mobile: scroll", scrollObject);
and i am getting this exception on executeScript line..
Exception in thread "main" org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Cannot read property 'charAt' of undefined (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 85 milliseconds
Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46'
System info: host: 'EDMXs-Mac.local', ip: '192.168.204.129', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.10', java.version: '1.8.0_91'
Driver info: io.appium.java_client.ios.IOSDriver
Any idea ?