Class VisualViewport
java.lang.Object
org.openqa.selenium.devtools.v85.page.model.VisualViewport
Visual viewport position, dimensions, and scale.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionHeight (CSS pixels), excludes scrollbar if present.Width (CSS pixels), excludes scrollbar if present.Horizontal offset relative to the layout viewport (CSS pixels).Vertical offset relative to the layout viewport (CSS pixels).getPageX()
Horizontal offset relative to the document (CSS pixels).getPageY()
Vertical offset relative to the document (CSS pixels).getScale()
Scale relative to the ideal viewport (size at width=device-width).getZoom()
Page zoom factor (CSS to device independent pixels ratio).
-
Constructor Details
-
VisualViewport
-
-
Method Details
-
getOffsetX
Horizontal offset relative to the layout viewport (CSS pixels). -
getOffsetY
Vertical offset relative to the layout viewport (CSS pixels). -
getPageX
Horizontal offset relative to the document (CSS pixels). -
getPageY
Vertical offset relative to the document (CSS pixels). -
getClientWidth
Width (CSS pixels), excludes scrollbar if present. -
getClientHeight
Height (CSS pixels), excludes scrollbar if present. -
getScale
Scale relative to the ideal viewport (size at width=device-width). -
getZoom
Page zoom factor (CSS to device independent pixels ratio).
-