Table of Contents

Interface IImage

Namespace
HP.LFT.SDK.Web
Assembly
HP.LFT.SDK.dll

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

string

Href

The location to which the browser navigates when the image is clicked.

string Href { get; }

Property Value

string

Src

The image source in URL format.

string Src { get; }

Property Value

string

Target

The target frame of the navigation.

string Target { get; }

Property Value

string

Remarks

Possible values: The name of the frame, _blank, _self, _top

Type

Returns the image type.

ImageType Type { get; }

Property Value

ImageType

Remarks

Possible values: ImageType