title: How to get multiple elements (div) using Xpath Selenium WebDriver JAVA?
body: <p>I'm having some difficulties to get multiple elements from a div.
  As you can see, I got the div[1] and after that I want to get more 8 div inside div[1]. But I want to do that with xpath(same line). Anyone have some idea?</p>
  
  <p>Father =  <code>.//*[@id='result']/div[1]</code></p>
  
  <p>Sons   =  </p>
  
  <pre><code>          .//*[@id='result']/div[1]/div[6]
            .//*[@id='result']/div[1]/div[9]
            .//*[@id='result']/div[1]/div[12]
            .//*[@id='result']/div[1]/div[15]
            .//*[@id='result']/div[1]/div[18]
            .//*[@id='result']/div[1]/div[21]
            .//*[@id='result']/div[1]/div[24]
            .//*[@id='result']/div[1]/div[27]
  </code></pre>
  
  <p>My Code:</p>
  
  <pre><code>List&lt;String&gt; productName = new ArrayList&lt;String&gt;();
  List&lt;WebElement&gt; allProductsName = driver.findElements(
          By.xpath(".//*[@id='result']/div[1]/div[6]"));
  for(WebElement w : allProductsName) {
      productName.add(w.getText());
  }
  System.out.print(productName);
  </code></pre>
  
  <p>I imagined something like that <code>".//*[@id='result']/div[1]/div[6],[9]..."</code> or</p>
  
  <pre><code>".//*[@id='result']/div[1]/div[6 and 9 ....]"
  </code></pre>
  
  <p>But didn't work. </p>