Class BackgroundService

java.lang.Object
org.openqa.selenium.devtools.v85.backgroundservice.BackgroundService

@Beta public class BackgroundService extends Object
Defines events for background web platform features.
  • Constructor Details

    • BackgroundService

      public BackgroundService()
  • Method Details

    • startObserving

      public static org.openqa.selenium.devtools.Command<Void> startObserving(ServiceName service)
      Enables event updates for the service.
    • stopObserving

      public static org.openqa.selenium.devtools.Command<Void> stopObserving(ServiceName service)
      Disables event updates for the service.
    • setRecording

      public static org.openqa.selenium.devtools.Command<Void> setRecording(Boolean shouldRecord, ServiceName service)
      Set the recording state for the service.
    • clearEvents

      public static org.openqa.selenium.devtools.Command<Void> clearEvents(ServiceName service)
      Clears all stored data for the service.
    • recordingStateChanged

      public static org.openqa.selenium.devtools.Event<RecordingStateChanged> recordingStateChanged()
    • backgroundServiceEventReceived

      public static org.openqa.selenium.devtools.Event<BackgroundServiceEvent> backgroundServiceEventReceived()