title: Selenium webdriver Java code to access headers and sub headers in HTML
body: <p>I need to access headers and subheaders of HTML using Java selenium webdriver . Could you please say what will be the java code to access the headers and sub headers of HTML.</p>
  
  <pre><code>&lt;div class="containerShadowBottom"&gt;&lt;div class="containerShadowRight"&gt;
  &lt;div class="containerShadowBL"&gt;
  &lt;div class="containerShadowUR"&gt;
  &lt;div class="containerShadowBR"&gt;
  &lt;div class="portletContent"&gt;
  &lt;h1 class="" id="Admin" style="cursor:pointer;" ondblclick="toggleClassName('AdminDiv','hide','detail',true);toggleClassName('AdminToggle','toggleUp','toggleDown');"&gt;
  &lt;a href="#" id="AdminToggle" class=" toggleDown" onclick="toggleClassName('AdminDiv','hide','detail',true);toggleClassName('AdminToggle','toggleUp','toggleDown');"&gt;&lt;/a&gt;Admin&lt;/h1&gt;&lt;div id="AdminDiv" class="hide"&gt;
  </code></pre>