title: How to scroll up to a specific date in calendar in appium java
body: <p>I'm scrolling up in list of year in calendar to select specific date like "1998". So how to scroll up to given year and click on that year?</p>
  
  <p>This given code is scrolling up little bit and then scrolling down again two times.
  <a href="https://i.stack.imgur.com/7H5cY.png" rel="nofollow noreferrer">This image is shows latest calendar ui</a></p>
  
  <pre><code>
          MobileElement element = (MobileElement) driver
                  .findElementByAndroidUIAutomator("new UiScrollable(new UiSelector().scrollable(true).instance(0)).scrollIntoView(new UiSelector().textContains(\"" + text + "\").instance(0))");
          element.click();
  </code></pre>