Interface PointInspection


public interface PointInspection
Provides information about DOM node at a specified point inside the loaded document.
  • Method Summary

    Modifier and Type
    Method
    Description
    default String
    Returns a string that represents the absolute URL of the image located at the point or an empty string if there is no image at the point.
    default String
    Returns a string that represents the absolute URL of the link DOM element at the point or an empty string if there is no link at the point.
    default Point
    Returns coordinates of the point relative to the node.
    default Optional<Node>
    Returns the Node at the point.
    default Optional<Element>
    Returns the link Element when a link is located at the point.
  • Method Details

    • localPoint

      default Point localPoint()
      Returns coordinates of the point relative to the node.
    • node

      default Optional<Node> node()
      Returns the Node at the point. Returns an empty Optional if there is no node at the point.
    • urlElement

      default Optional<Element> urlElement()
      Returns the link Element when a link is located at the point. Returns an empty Optional if there is no link element at the point.
    • absoluteImageUrl

      default String absoluteImageUrl()
      Returns a string that represents the absolute URL of the image located at the point or an empty string if there is no image at the point.
    • absoluteLinkUrl

      default String absoluteLinkUrl()
      Returns a string that represents the absolute URL of the link DOM element at the point or an empty string if there is no link at the point.