Open topic with navigation

com.hp.lft.sdk.web

## Interface Link

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

      public interface Link
      extends WebElement

  A Web hyperlink (or anchor) object.

- - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `java.lang.String` | `getBackgroundColor()` Returns this link's background color.
    `java.lang.String` | `getColor()` Returns this link's color.
    `java.lang.String` | `getFontName()` Returns this link's font.
    `java.lang.String` | `getHref()` Returns the location to which the browser navigates when the image is clicked.
    `java.lang.String` | `getTarget()` Returns the target frame of the navigation.

    - ### 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`

- - ### Method Detail

    - #### getHref

          java.lang.String getHref()
                            throws GeneralLeanFtException

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

    - #### getBackgroundColor

          java.lang.String getBackgroundColor()
                                       throws GeneralLeanFtException

      Returns this link's background color.
      Returns:
        this link's background color.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getColor

          java.lang.String getColor()
                             throws GeneralLeanFtException

      Returns this link's color.
      Returns:
        this link's color.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getFontName

          java.lang.String getFontName()
                                throws GeneralLeanFtException

      Returns this link's font.
      Returns:
        this link's font.
      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.