I have a clickable image and it is not visible in FireFox. I mean, there is no image, but is there is an element (and it is clickable). FindElement(by).Displayed returns true but there is still no image. The question is how can I check, is this image visible?
Also, I found an error in html headers (the reason, why image is not visible), maybe there is a way to check image presence using html headers?
public bool IsFileIconDisplayed()
{
return IsElementDisplayed(By.XPath("//*[@class='SomeClass']/img"));
}
protected bool IsElementDisplayed(By by)
{
return FindElement(by).Displayed;
}