title: How to click on dynamic list using its xpath. Elements keep changing accordingly
body: <p>The elements xpath will be like the below one.. and these are dynamic, so sometime, only one will be there.. sometime.. all 3 will be there... etc. so script has to identify with the number of elements appear and click one by one accordingly. </p>
  
  <pre><code>public void NumberOfStops(){
      Util.pause(Util.WaitingTime.SHORT);
      JavascriptExecutor jse = (JavascriptExecutor)getDriver();
      jse.executeScript("window.scrollBy(0,1000)", "");
      Util.pause(Util.WaitingTime.SHORT);
      Util.pause(Util.WaitingTime.SHORT);
  
      List&lt;WebElement&gt; AirlineStops = this.getDriver().findElements(By.cssSelector("ng-scope layout-row"));
      System.out.println("airlineSize = " + Integer.toString(AirlineStops.size()));
      for ( WebElement stops22 : AirlineStops ) {
              Util.pause(Util.WaitingTime.SHORT);
              stops22.click();
             Util.pause(Util.WaitingTime.SHORT);
      }
  </code></pre>
  
  <hr>
  
  <p>xpaths will be like this.</p>
  
  <pre><code>.//*[@id='stops']/div/check-box-switch/div/div[1]/label/div/div/div
  .//*[@id='stops']/div/check-box-switch/div/div[2]/label/div/div/div
  .//*[@id='stops']/div/check-box-switch/div/div[3]/label/div/div/div
  </code></pre>