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 SummaryMethods inherited from interface com.hp.lft.sdk.LocationInfoProvidergetAbsoluteLocation, getLocation, getSizeMethods inherited from interface com.hp.lft.sdk.SupportDragAndDropdragAndDropOn, dragAndDropOnMethods inherited from interface com.hp.lft.sdk.SupportsNativeObjectgetNativeObjectMethods inherited from interface com.hp.lft.sdk.TestObjectcallFTMethod, 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.TestObjectDescriberdescribeMethods inherited from interface com.hp.lft.sdk.WaitUntilVisibleProviderwaitUntilVisible, waitUntilVisibleMethods inherited from interface com.hp.lft.sdk.web.WebElementdoubleClick, doubleClick, fireEvent, getAccessibilityName, getCSSSelector, getRole, getXPath, hoverTap, hoverTap, longPress, longPress, pan, pan, pinch, pinch, swipe, swipeMethods inherited from interface com.hp.lft.sdk.web.WebTestObjectgetAttribute, getAttributes, getClassName, getComputedStyle, getComputedStyles, getId, getInnerHTML, getInnerText, getName, getOuterHTML, getOuterText, getTagName, getTitle, isVisibleMethods inherited from interface com.hp.lft.sdk.web.WebTestObjectDescriberdescribe, describe
- 
Method Details- 
getAltReturns this image's tooltip text.- Returns:
- this image's tooltip text.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getSrcReturns the image source in URL format.- Returns:
- the image source in URL format.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getTargetReturns 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
 
- 
getHrefReturns 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
 
- 
getTypeReturns the image type.- Returns:
- the image type. Possible values: ImageType
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
 
-