I have a HTML <div> element and wish to check if it is left aligned using Selenium. However the float:left CSS property is defined in a CSS class.
Is there any way in which I can access the CSS class attributes through Selenium? Alternately is there any other way to get this value?
<div class="myclass">
...
</div>
In sample.css
.myclass{
float:left;
}
I was trying to use getEval() - this.page().findElement("foo") to find out a way to get CSS class attributes.