title: How to get css class name using Selenium?
body: <p>I am new in selenium testing. I want to get the css class name using selenium. I am using eclipse and Java for development.</p>
  
  <pre><code>&lt;table &gt;
  &lt;tr class="odd"&gt;&lt;td&gt;Odd row&lt;/td&gt;&lt;/tr&gt;
  &lt;tr class="even"&gt;&lt;td&gt;Even row&lt;/td&gt;&lt;/tr&gt;
  &lt;tr class="odd"&gt;&lt;td&gt;Odd row2&lt;/td&gt;&lt;/tr&gt;
  &lt;tr class="even"&gt;&lt;td&gt;Even row2&lt;/td&gt;&lt;/tr&gt;       
  &lt;/table&gt;
  </code></pre>
  
  <p>Is there any way to get the class name 'odd' or 'even' using selenium?  I </p>