title: How to click on next class name?
body: <p>I have same class <code>&lt;a class="row-title"&gt;</code> property up to 21 web element.
  I am able to fetch all 21 elements using the get text method but I want to perform an operation like this. </p>
  
  <ol>
  <li>first I have to click on XPath <code>driver.findElement(By.xpath(".//*[@id='menu-posts-presentation']/a/div[3]"));</code></li>
  <li>then i want to click on <code>&lt;a class="row-title"&gt;</code> first class name</li>
  <li>step 3 i also wants to click on xpath <code>driver.findElement(By.xpath(".//*[@id='publish']")).click();</code></li>
  <li>then I have to again click on the same XPath which is in step1 and then click on second class name not first one and again click on XPath which is in 3 step3</li>
  <li><p>so I want to iterate this up to 21 class name.</p>
  
  <pre><code>Test(priority = 2)
  public void myfsk1(){ 
  
      driver.findElement(By.xpath(".//*[@id='menu-posts-presentation']/a/div[3]")).click();
      List&lt;WebElement&gt; elements = driver.findElements(By.className("row-title"));
      System.out.println(elements.size());
  
      for (int i=1;i&lt;=elements.size()-1;i++)
      {
          System.out.println(elements.get(i).getText());
          Reporter.log(elements.get(i).getText());
  
      }
  </code></pre></li>
  </ol>