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