Class BackgroundService
java.lang.Object
org.openqa.selenium.devtools.v128.backgroundservice.BackgroundService
Defines events for background web platform features.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.openqa.selenium.devtools.Event<BackgroundServiceEvent>
static org.openqa.selenium.devtools.Command<Void>
clearEvents
(ServiceName service) Clears all stored data for the service.static org.openqa.selenium.devtools.Event<RecordingStateChanged>
static org.openqa.selenium.devtools.Command<Void>
setRecording
(Boolean shouldRecord, ServiceName service) Set the recording state for the service.static org.openqa.selenium.devtools.Command<Void>
startObserving
(ServiceName service) Enables event updates for the service.static org.openqa.selenium.devtools.Command<Void>
stopObserving
(ServiceName service) Disables event updates for the service.
-
Constructor Details
-
BackgroundService
public BackgroundService()
-
-
Method Details
-
startObserving
Enables event updates for the service. -
stopObserving
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
Clears all stored data for the service. -
recordingStateChanged
-
backgroundServiceEventReceived
public static org.openqa.selenium.devtools.Event<BackgroundServiceEvent> backgroundServiceEventReceived()
-