title: How to get the count of all the web element in a web page that contains "ID" attribute?
body: <p>I have tried to search in internet but unavailable to fetch any solution  for the above problem.
  I  think we can get the value of id using the code below.
  driver.getAttribute("id");</p>
  
  <p>but how to capture all ids ??
  <strong>The Objective  of my test Script is to confirm no element in a web page has duplicate id .</strong>
  code is needed in Java.</p>