Class DocumentSnapshot


  • public class DocumentSnapshot
    extends java.lang.Object
    Document snapshot.
    • Method Detail

      • getDocumentURL

        public StringIndex getDocumentURL()
        Document URL that `Document` or `FrameOwner` node points to.
      • getTitle

        public StringIndex getTitle()
        Document title.
      • getBaseURL

        public StringIndex getBaseURL()
        Base URL that `Document` or `FrameOwner` node uses for URL completion.
      • getContentLanguage

        public StringIndex getContentLanguage()
        Contains the document's content language.
      • getEncodingName

        public StringIndex getEncodingName()
        Contains the document's character set encoding.
      • getPublicId

        public StringIndex getPublicId()
        `DocumentType` node's publicId.
      • getSystemId

        public StringIndex getSystemId()
        `DocumentType` node's systemId.
      • getFrameId

        public StringIndex getFrameId()
        Frame ID for frame owner elements and also for the document node.
      • getTextBoxes

        public TextBoxSnapshot getTextBoxes()
        The post-layout inline text nodes.
      • getScrollOffsetX

        public java.util.Optional<java.lang.Number> getScrollOffsetX()
        Horizontal scroll offset.
      • getScrollOffsetY

        public java.util.Optional<java.lang.Number> getScrollOffsetY()
        Vertical scroll offset.
      • getContentWidth

        public java.util.Optional<java.lang.Number> getContentWidth()
        Document content width.
      • getContentHeight

        public java.util.Optional<java.lang.Number> getContentHeight()
        Document content height.