The x-path is like < img id="" src="/A/A/B.png" style="">
I am required to find the color of the image , the style does not contain anything about color. It contains information only about height,width.
I am sure in the src path the fill attribute would be present.But how am I suppose to get till that?
Here is what i think of doing:
String css = driver.findElement(By.Xpath("..blah../img").getCSSValue("background-color");
but i get 'transparent' as answer .How do i get over it?