title: Selenium webdriver : how to find the element in DOM based on custom attribute
body: <p>How can I find the element in DOM based on a custom attribute?</p>
  
  <p>For example:</p>
  
  <p>DOM attributes are not present in HTML view. Using DOM inspector I can able to identified the Custom attribute is unique.</p>
  
  <pre><code>driver.findElement(By.id("SimpleSearch:dIndicesGrid:1:Value")).getAttribute("_celltype");
  </code></pre>
  
  <p>Here <code>_celltype</code> is custom attribute. This attribute is not visible in HTML view.</p>