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, getSize
Methods inherited from interface com.hp.lft.sdk.SupportDragAndDrop
dragAndDropOn, dragAndDropOn
Methods inherited from interface com.hp.lft.sdk.SupportsNativeObject
getNativeObject
Methods 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, waitUntilExists
Methods inherited from interface com.hp.lft.sdk.TestObjectDescriber
describe
Methods inherited from interface com.hp.lft.sdk.WaitUntilVisibleProvider
waitUntilVisible, waitUntilVisible
Methods 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, swipe
Methods inherited from interface com.hp.lft.sdk.web.WebTestObject
getAttribute, getAttributes, getClassName, getComputedStyle, getComputedStyles, getId, getInnerHTML, getInnerText, getName, getOuterHTML, getOuterText, getTagName, getTitle, isVisible
Methods 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
-