Package com.hp.lft.sdk.web
Interface Image
- All Superinterfaces:
Clickable,LocationInfoProvider,SupportDragAndDrop,SupportsNativeObject,TestObject,TestObjectDescriber,VisibleProvider,WaitUntilVisibleProvider,WebElement,WebTestObject,WebTestObjectDescriber
A Web image element in the HTML.
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>
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>
-
Method Summary
Methods inherited from interface com.hp.lft.sdk.LocationInfoProvider
getAbsoluteLocation, getLocation, getSizeMethods inherited from interface com.hp.lft.sdk.SupportDragAndDrop
dragAndDropOn, dragAndDropOnMethods inherited from interface com.hp.lft.sdk.SupportsNativeObject
getNativeObjectMethods inherited from interface com.hp.lft.sdk.TestObject
callFTMethod, callFTMethod, exists, exists, findChildren, getDescription, getDisplayName, getParent, getSnapshot, getTextLocations, getTextLocations, getVisibleText, getVisibleText, highlight, highlightMatches, setDescription, setDisplayName, verifyImageExists, verifyImageExists, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, waitUntilExists, waitUntilExistsMethods inherited from interface com.hp.lft.sdk.TestObjectDescriber
describeMethods inherited from interface com.hp.lft.sdk.WaitUntilVisibleProvider
waitUntilVisible, waitUntilVisibleMethods inherited from interface com.hp.lft.sdk.web.WebElement
doubleClick, doubleClick, fireEvent, getAccessibilityName, getCSSSelector, getRole, getXPath, hoverTap, hoverTap, longPress, longPress, pan, pan, pinch, pinch, swipe, swipeMethods inherited from interface com.hp.lft.sdk.web.WebTestObject
getAttribute, getAttributes, getClassName, getComputedStyle, getComputedStyles, getId, getInnerHTML, getInnerText, getName, getOuterHTML, getOuterText, getTagName, getTitle, isVisibleMethods inherited from interface com.hp.lft.sdk.web.WebTestObjectDescriber
describe, describe
-
Method Details
-
getAlt
Returns this image's tooltip text.- Returns:
- this image's tooltip text.
- Throws:
GeneralLeanFtException- if error occurs during execution
-
getSrc
Returns the image source in URL format.- Returns:
- the image source in URL format.
- Throws:
GeneralLeanFtException- if error occurs during execution
-
getTarget
Returns the target frame of the navigation.- Returns:
- the target frame of the navigation. Possible values: Any valid HTML target attribute value, for example, framename, _blank, or _self.
- Throws:
GeneralLeanFtException- if error occurs during execution
-
getHref
Returns the location to which the browser navigates when the image is clicked.- Returns:
- the location to which the browser navigates when the image is clicked.
- Throws:
GeneralLeanFtException- if error occurs during execution
-
getType
Returns the image type.- Returns:
- the image type. Possible values:
ImageType - Throws:
GeneralLeanFtException- if error occurs during execution
-