title: List<WebElement> gives blank results
body: <p>I am creating an automatic test for some webs and I'm using WebDriver and code that is written in Java. I am facing two issues here. </p>
  
  <ol>
  <li><code>click()</code> method is not working.</li>
  <li>When I am trying to read a List of WebElement its showing blank. But it is showing correct <code>size()</code>.</li>
  </ol>
  
  <p>My Code:</p>
  
  <pre><code>System.setProperty("webdriver.gecko.driver", "D:\\back up\\Proj\\selenium\\Jars\\Drivers\\geckodriver.exe");
  WebDriver driver=new FirefoxDriver();
  driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
  driver.get("http://www.americangolf.co.uk/golf-clubs/fairway-woods");
  
  List&lt;WebElement&gt; allBrands = driver.findElements(By.xpath("//*[@id='secondary']/div[1]/div[2]/div/ul/li/a"));
  List&lt;WebElement&gt; allBrandsInShowAll = driver.findElements(By.xpath("//*[@id='secondary']/div[1]/div[2]/div/div[2]/ul/li/a"));
  
  System.out.println("Total No of Brands "+(allBrands.size() + allBrandsInShowAll.size()));
  driver.findElement(By.xpath("//*[@id='secondary']/div[1]/div[2]/div/div[1]/a")).click(); // This is not clicking on ShowAll Button
  for(WebElement ele :allBrandsInShowAll) {
    System.out.println("Name=&gt;"+ele.getText());
  }
  
  for(WebElement ele :allBrands) {
   System.out.println("Name=&gt;"+ele.getText()); // Not printing the names of Brands
  }
  </code></pre>