Package com.hp.lft.sdk.web
Interface Area
- All Superinterfaces:
Clickable
,LocationInfoProvider
,SupportDragAndDrop
,SupportsNativeObject
,TestObject
,TestObjectDescriber
,VisibleProvider
,WaitUntilVisibleProvider
,WebElement
,WebTestObject
,WebTestObjectDescriber
A section of an image on a Web page (usually a section of a client-side image map).
-
Method Summary
Modifier and TypeMethodDescriptiongetAlt()
Returns this object's tooltip text.int[]
Returns the coordinates of an area in an image-map.getHref()
Returns the location to which the browser navigates when the object is clicked.Returns the name of the map element the image uses to define the area inside the image.getSrc()
Returns this image source in URL format.Returns the target frame of the navigation.getType()
Returns the image type.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 object's tooltip text.- Returns:
- this object's tooltip text.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
getSrc
Returns this image source in URL format.- Returns:
- this 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 object is clicked.- Returns:
- the location to which the browser navigates when the object is clicked.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
getType
Returns the image type.- Returns:
- the image type. Possible values: see
ImageType
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
getMapName
Returns the name of the map element the image uses to define the area inside the image.- Returns:
- the name of the map element the image uses to define the area inside the image.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
getCoords
Returns the coordinates of an area in an image-map. The coordinate format is determined by the shape of the area, for example:
shape="rect" - x1,y1,x2,y2
shape="circle" - x,y,radius
shape="poly" - x1,y1,x2,y2,..,xn,yn- Returns:
- the coordinates of an area in an image-map.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-