title: Unable to scroll Horizontally in Appium using UiScrollable and TouchActions
body: <p>I am trying to scroll till the Gift Card option on Make My Trip Home Page and then Click it. So far I have tried below two approaches without success. I am also attaching the screenshot of the App Home Page for clear understanding.</p>
  
  <p>Approach 1 : Using AndroidUIAutomator to scroll to particular element. </p>
  
  <pre><code>driver.findElement(MobileBy.AndroidUIAutomator("new UiScrollable(new UiSelector()"
                  + ".resourceId(\"com.makemytrip:id/rvHomePageIcon\"))"
                  + ".scrollIntoView(new UiSelector().textMatches(\"Gift Cards\")"
                  + ".instance(0));"));
  </code></pre>
  
  <p>Result : This does not scroll but clicks on Homestays option on the app. </p>
  
  <p>Approach 2: </p>
  
  <pre><code>WebElement eleOne = driver.findElement(By.xpath("//*[@text='Flights']"));
  WebElement eleTwo = driver.findElement(By.xpath("//*[@text='Gift Cards']"));
  TouchAction t = new TouchAction(driver);
  t.longPress(longPressOptions().withElement(element(eleOne))
                  .withDuration(ofSeconds(8))).moveTo(element(eleTwo))
                      .release().perform();
  </code></pre>
  
  <p>Result : This throws No Such Element Found exception as eleTwo is currently not in frame. I tried to tweak this approach and enter eleTwo as an element which is visible on screen just to see if the scrolling works and it did work. 
  But Somehow I am not sure on how to handle it for elements which are not visible on screen.</p>
  
  <p>I would like to scroll the top options list and then click on GiftCard which is the last option on top widget menu. </p>
  
  <p>I am using AppiumDriver with Java-Client 7.3.0.</p>
  
  <p><a href="https://i.stack.imgur.com/IojMJ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IojMJ.jpg" alt="IntialPosition"></a>
  <a href="https://i.stack.imgur.com/rhUBh.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rhUBh.jpg" alt="ScrollingTillGiftCard"></a></p>