Class BackgroundService


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

      • BackgroundService

        public BackgroundService()
    • Method Detail

      • startObserving

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

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

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

        public static org.openqa.selenium.devtools.Command<java.lang.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()