java.lang.Object
org.openqa.selenium.devtools.v141.emulation.model.ScreenInfo

@Beta public class ScreenInfo extends Object
Screen information similar to the one returned by window.getScreenDetails() method, see https://w3c.github.io/window-management/#screendetailed.
  • Constructor Details

  • Method Details

    • getLeft

      public Integer getLeft()
      Offset of the left edge of the screen.
    • getTop

      public Integer getTop()
      Offset of the top edge of the screen.
    • getWidth

      public Integer getWidth()
      Width of the screen.
    • getHeight

      public Integer getHeight()
      Height of the screen.
    • getAvailLeft

      public Integer getAvailLeft()
      Offset of the left edge of the available screen area.
    • getAvailTop

      public Integer getAvailTop()
      Offset of the top edge of the available screen area.
    • getAvailWidth

      public Integer getAvailWidth()
      Width of the available screen area.
    • getAvailHeight

      public Integer getAvailHeight()
      Height of the available screen area.
    • getDevicePixelRatio

      public Number getDevicePixelRatio()
      Specifies the screen's device pixel ratio.
    • getOrientation

      public ScreenOrientation getOrientation()
      Specifies the screen's orientation.
    • getColorDepth

      public Integer getColorDepth()
      Specifies the screen's color depth in bits.
    • getIsExtended

      public Boolean getIsExtended()
      Indicates whether the device has multiple screens.
    • getIsInternal

      public Boolean getIsInternal()
      Indicates whether the screen is internal to the device or external, attached to the device.
    • getIsPrimary

      public Boolean getIsPrimary()
      Indicates whether the screen is set as the the operating system primary screen.
    • getLabel

      public String getLabel()
      Specifies the descriptive label for the screen.
    • getId

      public ScreenId getId()
      Specifies the unique identifier of the screen.