title: Getting data from dynamic loading Linear Layout
body: <p>I am having a many Linear Layout that are same in layout. Here is hierarchy.</p>
  
  <p><a href="https://i.stack.imgur.com/g6uGW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/g6uGW.png" alt="enter image description here"></a></p>
  
  <p>Every entry is like this: that is like LinearLayout {product_list} [0,202][480,455]</p>
  
  <p><a href="https://i.stack.imgur.com/el8tx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/el8tx.png" alt="enter image description here"></a></p>
  
  <p>Now as I scroll down, it loads dynamically and goes till all results end.</p>
  
  <p>So my first question is how to do this using Appium </p>
  
  <p>I am having this class with me :</p>
  
  <pre><code>public class AllProductsCategoryPage extends BasePage{
      public AllProductsCategoryPage(WebDriver driver) {
          super(driver);
      }
      public void getData() throws InterruptedException {
               List&lt;String&gt; prices;
      }
  }
  </code></pre>
  
  <p>Here I want list of all the prices. The price value in all layouts is being com.myapp.android:id/product_list_product_item_price.</p>
  
  <p>Please help to approach this problem.</p>
  
  <p>The outer Framelayout is com.myapp.android:id/contentFragment</p>
  
  <p>NOTE : On a current screen almost three Linear Layouts can be visible. So can we make use of it ? And then make use of code something like this :</p>
  
  <pre><code>public void scrollPageUp() {
      JavascriptExecutor js = (JavascriptExecutor) driver;
      HashMap&lt;String, Double&gt; swipeObject = new HashMap&lt;String, Double&gt;();
      swipeObject.put("startX", 0.50);
      swipeObject.put("startY", 0.95);
      swipeObject.put("endX", 0.50);
      swipeObject.put("endY", 0.01);
      swipeObject.put("duration", 3.0);
      js.executeScript("mobile: swipe", swipeObject);
  }
  </code></pre>