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

      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 error occurs during execution
    • getHref

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

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