title: How to count number of images available on a web page using selenium webdriver?
body: <p>How to count number of images available on a web page using selenium webdriver? The web page contains a lots of image some are visible and some are hidden (display:none). I only wants to count images which are visible(not hidden).</p>
  
  <p>I tried this but it doesn't work for only visible images.</p>
  
  <pre><code>@Test
      public void imagetest()
      {
          driver.get("http://uat.tfc.tv/");
          List&lt;WebElement&gt; listwebelement = driver.findElements(By.className("img-responsive"));
          int i=0;
          for (WebElement Element : listwebelement) {
              i = i+1;
              System.out.println(Element.getTagName());
              System.out.println(Element.getText());
  
              String link = Element.getAttribute("alt");
  
              System.out.println(link);
          }
          System.out.println("total objects founds " + i);
      }
  </code></pre>