Get value from style css – selenium xpath
For example if you want to get value Box® from a style,
<span style=”float: left;”Box®</span>
<span style=”float: left;”Ball®</span>
<span style=”float: left;”Bat®</span>
String value =driver.findElement(By.xpath/use index or relative path).getCssValue(“left”);
No images available.