Class HeadlessExperimental

java.lang.Object
org.openqa.selenium.devtools.v134.headlessexperimental.HeadlessExperimental

@Beta public class HeadlessExperimental extends Object
This domain provides experimental commands only supported in headless mode.
  • Constructor Details

    • HeadlessExperimental

      public HeadlessExperimental()
  • Method Details

    • beginFrame

      public static org.openqa.selenium.devtools.Command<HeadlessExperimental.BeginFrameResponse> beginFrame(Optional<Number> frameTimeTicks, Optional<Number> interval, Optional<Boolean> noDisplayUpdates, Optional<ScreenshotParams> screenshot)
      Sends a BeginFrame to the target and returns when the frame was completed. Optionally captures a screenshot from the resulting frame. Requires that the target was created with enabled BeginFrameControl. Designed for use with --run-all-compositor-stages-before-draw, see also https://goo.gle/chrome-headless-rendering for more background.
    • disable

      @Deprecated public static org.openqa.selenium.devtools.Command<Void> disable()
      Deprecated.
      Disables headless events for the target.
    • enable

      @Deprecated public static org.openqa.selenium.devtools.Command<Void> enable()
      Deprecated.
      Enables headless events for the target.