title: Scroll and click - Not working for both Android and iOS on Appium tool with selenium java
body: <p>I am trying to scroll and its not working for both Android and iOS, Can you please help me on this.</p>
  
  <p>Look forward to hear back from you.</p>
  
  <p>Did try with ScrollTO and ScrollToExact as both of them are deprecated now, so did try with this:</p>
  
  <pre><code>        String str = "CADILLAC";
          driver.findElementByAndroidUIAutomator("new UiScrollable(new  UiSelector().scrollable(true).instance(0)).scrollIntoView(new  UiSelector().textContains(\""+str+"\").instance(0))").click();
  </code></pre>
  
  <p>Still does not work.</p>
  
  <p>Did go through many blogs , videos , course content and material no one has explained or there a specific solution on how to handle this</p>
  
  <p>Did try with below,still gets the error </p>
  
  <blockquote>
    <p>org.openqa.selenium.WebDriverException:</p>
  </blockquote>
  
  <pre><code>driver.findElementByAndroidUIAutomator("UiSelector().resourceId(\"current_value_tv\").text(\"All Makes\")").click();
  driver.findElementByAndroidUIAutomator("UiSelector().className(\"android.widget.TextView\").text(\"AUSTIN HEALEY\")").click();
  </code></pre>
  
  <blockquote>
    <p>org.openqa.selenium.WebDriverException: An unknown server-side error<br>
    occurred while processing the command. (WARNING: The server did not
    provide any stacktrace information)
            Command duration or timeout: 45 milliseconds
            Build info: version: '2.45.0', revision: '32a636c', time: '2015-03-05 22:01:35'
            System info: host: 'NCA1026471', ip: '192.168.56.1', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version:
    '1.8.0_91'
            Driver info: io.appium.java_client.android.AndroidDriver
            Capabilities [{app=C:\Appium\workspace\Lokesh\app\app-release.apk,<br>
    appPackage=au.com.carsguide, rotatable=true,
    networkConnectionEnabled=true,  noReset=true, warnings={},
    handlesAlerts=true, deviceName=Carsguide Product,  version=0.17.0,
    platform=ANDROID,  appActivity=au.com.carsguide.activity.HomeActivity,
    desired= {app=C:\Appium\workspace\Lokesh\app\app-release.apk, 
    appPackage=au.com.carsguide,
    appActivity=au.com.carsguide.activity.HomeActivity, noReset=true,
    platformVersion=5.0, browserName=, platformName=Android,
    deviceName=Carsguide Product, device=Android}, acceptSslCerts=true,
    platformVersion=21, automationName=selendroid, browserName=selendroid,
    takesScreenshot=true, javascriptEnabled=true, platformName=android, 
    device=Android}]
            Session ID: e90cac4d-38aa-99fd-2dd2-70cc09a0e717
           *** Element info: {Using=-android uiautomator,        value=UiSelector().resourceId("current_value_tv").text("All Makes")}
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
    Method)</p>
  </blockquote>