Class VisualViewport

java.lang.Object
org.openqa.selenium.devtools.v85.page.model.VisualViewport

public class VisualViewport extends Object
Visual viewport position, dimensions, and scale.
  • Constructor Details

  • Method Details

    • getOffsetX

      public Number getOffsetX()
      Horizontal offset relative to the layout viewport (CSS pixels).
    • getOffsetY

      public Number getOffsetY()
      Vertical offset relative to the layout viewport (CSS pixels).
    • getPageX

      public Number getPageX()
      Horizontal offset relative to the document (CSS pixels).
    • getPageY

      public Number getPageY()
      Vertical offset relative to the document (CSS pixels).
    • getClientWidth

      public Number getClientWidth()
      Width (CSS pixels), excludes scrollbar if present.
    • getClientHeight

      public Number getClientHeight()
      Height (CSS pixels), excludes scrollbar if present.
    • getScale

      public Number getScale()
      Scale relative to the ideal viewport (size at width=device-width).
    • getZoom

      public Optional<Number> getZoom()
      Page zoom factor (CSS to device independent pixels ratio).