title: What is the difference between .getClass() and .getAttribute("class") in selenium
body: <p>Please see the below code</p>
  
  <pre><code>`&lt;div class="datepicker dropdown-menu" style="display: block; top: 301px; left: 308px;"&gt;
  &lt;div class="datepicker-days" style="display: block;"&gt;
  &lt;div class="datepicker-months" style="display: none;"&gt;
  &lt;div class="datepicker-years" style="display: none;"&gt;
  &lt;/div&gt;`
  </code></pre>
  
  <p>I am trying get the classname of the Divs present inside Div with classname(datepicker dropdown-menu") but it work with 
  <code>wdriver.getAttribute("class").toString();</code> and not with 
  <code>wdriver.getclass().toString();</code>. Can anybody tell me what is the difference?</p>