Class ScreenInfo
java.lang.Object
org.openqa.selenium.devtools.v141.emulation.model.ScreenInfo
Screen information similar to the one returned by window.getScreenDetails() method,
see https://w3c.github.io/window-management/#screendetailed.
-
Constructor Summary
ConstructorsConstructorDescriptionScreenInfo(Integer left, Integer top, Integer width, Integer height, Integer availLeft, Integer availTop, Integer availWidth, Integer availHeight, Number devicePixelRatio, ScreenOrientation orientation, Integer colorDepth, Boolean isExtended, Boolean isInternal, Boolean isPrimary, String label, ScreenId id) -
Method Summary
Modifier and TypeMethodDescriptionHeight of the available screen area.Offset of the left edge of the available screen area.Offset of the top edge of the available screen area.Width of the available screen area.Specifies the screen's color depth in bits.Specifies the screen's device pixel ratio.Height of the screen.getId()Specifies the unique identifier of the screen.Indicates whether the device has multiple screens.Indicates whether the screen is internal to the device or external, attached to the device.Indicates whether the screen is set as the the operating system primary screen.getLabel()Specifies the descriptive label for the screen.getLeft()Offset of the left edge of the screen.Specifies the screen's orientation.getTop()Offset of the top edge of the screen.getWidth()Width of the screen.
-
Constructor Details
-
ScreenInfo
public ScreenInfo(Integer left, Integer top, Integer width, Integer height, Integer availLeft, Integer availTop, Integer availWidth, Integer availHeight, Number devicePixelRatio, ScreenOrientation orientation, Integer colorDepth, Boolean isExtended, Boolean isInternal, Boolean isPrimary, String label, ScreenId id)
-
-
Method Details
-
getLeft
Offset of the left edge of the screen. -
getTop
Offset of the top edge of the screen. -
getWidth
Width of the screen. -
getHeight
Height of the screen. -
getAvailLeft
Offset of the left edge of the available screen area. -
getAvailTop
Offset of the top edge of the available screen area. -
getAvailWidth
Width of the available screen area. -
getAvailHeight
Height of the available screen area. -
getDevicePixelRatio
Specifies the screen's device pixel ratio. -
getOrientation
Specifies the screen's orientation. -
getColorDepth
Specifies the screen's color depth in bits. -
getIsExtended
Indicates whether the device has multiple screens. -
getIsInternal
Indicates whether the screen is internal to the device or external, attached to the device. -
getIsPrimary
Indicates whether the screen is set as the the operating system primary screen. -
getLabel
Specifies the descriptive label for the screen. -
getId
Specifies the unique identifier of the screen.
-