Interface IImage
An Web image element in the HTML.
Inherited Members
Namespace: HP.LFT.SDK.Web
Assembly: HP.LFT.SDK.dll
Syntax
public interface IImage : IWebElement, ITestObject, IClickable, IWebTestObject, IWebDescriber, ITestObjectDescriber, ILocationInfoProvider, ISupportsNativeObject, IVisibleProvider, ISupportDragAndDrop
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.
Declaration
string Alt { get; }
Property Value
| Type | Description |
|---|---|
| string |
Href
The location to which the browser navigates when the image is clicked.
Declaration
string Href { get; }
Property Value
| Type | Description |
|---|---|
| string |
Src
The image source in URL format.
Declaration
string Src { get; }
Property Value
| Type | Description |
|---|---|
| string |
Target
The target frame of the navigation.
Declaration
string Target { get; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
Possible values: The name of the frame, _blank, _self, _top
Type
Returns the image type.
Declaration
ImageType Type { get; }
Property Value
| Type | Description |
|---|---|
| ImageType |
Remarks
Possible values: ImageType