Class HeadlessExperimental

java.lang.Object
org.openqa.selenium.devtools.v85.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.gl/3zHXhB for more background.
    • disable

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

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

      public static org.openqa.selenium.devtools.Event<Boolean> needsBeginFramesChanged()