Share this page

com.hp.lft.sdk.web

## Interface Area

- All Superinterfaces:
    Clickable, LocationInfoProvider, SupportDragAndDrop, SupportsNativeObject, TestObject, TestObjectDescriber, VisibleProvider, WaitUntilVisibleProvider, WebElement, WebTestObject, WebTestObjectDescriber

      public interface Area
      extends WebElement

  A section of an image on a Web page (usually a section of a client-side image map).

- - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `java.lang.String` | `getAlt()` Returns this object's tooltip text.
    `int[]` | `getCoords()` Returns the coordinates of an area in an image-map.
    `java.lang.String` | `getHref()` Returns the location to which the browser navigates when the object is clicked.
    `java.lang.String` | `getMapName()` Returns the name of the map element the image uses to define the area inside the image.
    `java.lang.String` | `getSrc()` Returns this image source in URL format.
    `java.lang.String` | `getTarget()` Returns the target frame of the navigation.
    `ImageType` | `getType()` Returns the image type.

    - ### 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.TestObject

      `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.Clickable

      `click, click, click`

    - ### 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.LocationInfoProvider

      `getAbsoluteLocation, getLocation, getSize`

    - ### Methods inherited from interface com.hp.lft.sdk.web.WebTestObjectDescriber

      `describe, describe`

    - ### Methods inherited from interface com.hp.lft.sdk.TestObjectDescriber

      `describe`

    - ### Methods inherited from interface com.hp.lft.sdk.SupportsNativeObject

      `getNativeObject`

    - ### Methods inherited from interface com.hp.lft.sdk.SupportDragAndDrop

      `dragAndDropOn, dragAndDropOn`

    - ### Methods inherited from interface com.hp.lft.sdk.WaitUntilVisibleProvider

      `waitUntilVisible, waitUntilVisible`

    - ### Methods inherited from interface com.hp.lft.sdk.VisibleProvider

      `isVisible`

- - ### Method Detail

    - #### getAlt

          java.lang.String getAlt()
                           throws GeneralLeanFtException

      Returns this object's tooltip text.
      Returns:
        this object's tooltip text.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getSrc

          java.lang.String getSrc()
                           throws GeneralLeanFtException

      Returns this image source in URL format.
      Returns:
        this image source in URL format.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getTarget

          java.lang.String getTarget()
                              throws GeneralLeanFtException

      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 an error occurs during execution.

    - #### getHref

          java.lang.String getHref()
                            throws GeneralLeanFtException

      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 an error occurs during execution.

    - #### getType

                                                      ImageType getType()
                     throws GeneralLeanFtException

      Returns the image type.
      Returns:
        the image type. Possible values: see `ImageType`
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getMapName

          java.lang.String getMapName()
                               throws GeneralLeanFtException

      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 an error occurs during execution.

    - #### getCoords

          int[] getCoords()
                   throws GeneralLeanFtException

      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 an error occurs during execution.

Tips to improve your search results... UFT Developer Java SDK Reference Version 15.0-15.0.2 UFT Developer SDK Reference All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: