I was trying to fetch css class name using eclipse and Java.
<table >
<tr class="odd"><td>Odd row</td></tr>
<tr class="even"><td>Even row</td></tr>
<tr class="odd"><td>Odd row2</td></tr>
<tr class="even"><td>Even row2</td></tr>
</table>
How can I get the class name 'odd' or 'even' using selenium?