Interface IImage
An Web image element in the HTML.
public interface IImage : IWebElement, ITestObject, IClickable, IWebTestObject, IWebDescriber, ITestObjectDescriber, ILocationInfoProvider, ISupportsNativeObject, IVisibleProvider, ISupportDragAndDrop
- Inherited Members
- Extension Methods
Remarks
Examples:
<img src=“myImage.png”/>
an image link that, when clicked, navigates to another URL
DOM structure example:
<a href=“http://www.google.com”>
<img src=“googleLogo.png”/>
</a>
Properties
Alt
This image's tooltip text.
string Alt { get; }
Property Value
Href
The location to which the browser navigates when the image is clicked.
string Href { get; }
Property Value
Src
The image source in URL format.
string Src { get; }
Property Value
Target
The target frame of the navigation.
string Target { get; }
Property Value
Remarks
Possible values: The name of the frame, _blank, _self, _top
Type
Returns the image type.
ImageType Type { get; }
Property Value
Remarks
Possible values: ImageType