Class ServiceWorkerAdapter
- Namespace
- OpenQA.Selenium.DevTools.V130.ServiceWorker
- Assembly
- WebDriver.dll
Represents an adapter for the ServiceWorker domain to simplify the command interface.
public class ServiceWorkerAdapter
- Inheritance
-
ServiceWorkerAdapter
- Inherited Members
Constructors
ServiceWorkerAdapter(IDevToolsSession)
Initializes a new instance of the ServiceWorkerAdapter class.
public ServiceWorkerAdapter(IDevToolsSession session)
Parameters
session
IDevToolsSessionThe IDevToolsSession to be used with this adapter.
Properties
Session
Gets the DevToolsSession associated with the adapter.
public IDevToolsSession Session { get; }
Property Value
Methods
DeliverPushMessage(DeliverPushMessageCommandSettings, CancellationToken, int?, bool)
deliverPushMessage
public Task<DeliverPushMessageCommandResponse> DeliverPushMessage(DeliverPushMessageCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
DeliverPushMessageCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
Disable(DisableCommandSettings, CancellationToken, int?, bool)
disable
public Task<DisableCommandResponse> Disable(DisableCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
DisableCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
DispatchPeriodicSyncEvent(DispatchPeriodicSyncEventCommandSettings, CancellationToken, int?, bool)
dispatchPeriodicSyncEvent
public Task<DispatchPeriodicSyncEventCommandResponse> DispatchPeriodicSyncEvent(DispatchPeriodicSyncEventCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
DispatchPeriodicSyncEventCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
DispatchSyncEvent(DispatchSyncEventCommandSettings, CancellationToken, int?, bool)
dispatchSyncEvent
public Task<DispatchSyncEventCommandResponse> DispatchSyncEvent(DispatchSyncEventCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
DispatchSyncEventCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
Enable(EnableCommandSettings, CancellationToken, int?, bool)
enable
public Task<EnableCommandResponse> Enable(EnableCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
EnableCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
InspectWorker(InspectWorkerCommandSettings, CancellationToken, int?, bool)
inspectWorker
public Task<InspectWorkerCommandResponse> InspectWorker(InspectWorkerCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
InspectWorkerCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetForceUpdateOnPageLoad(SetForceUpdateOnPageLoadCommandSettings, CancellationToken, int?, bool)
setForceUpdateOnPageLoad
public Task<SetForceUpdateOnPageLoadCommandResponse> SetForceUpdateOnPageLoad(SetForceUpdateOnPageLoadCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetForceUpdateOnPageLoadCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SkipWaiting(SkipWaitingCommandSettings, CancellationToken, int?, bool)
skipWaiting
public Task<SkipWaitingCommandResponse> SkipWaiting(SkipWaitingCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SkipWaitingCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
StartWorker(StartWorkerCommandSettings, CancellationToken, int?, bool)
startWorker
public Task<StartWorkerCommandResponse> StartWorker(StartWorkerCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
StartWorkerCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
StopAllWorkers(StopAllWorkersCommandSettings, CancellationToken, int?, bool)
stopAllWorkers
public Task<StopAllWorkersCommandResponse> StopAllWorkers(StopAllWorkersCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
StopAllWorkersCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
StopWorker(StopWorkerCommandSettings, CancellationToken, int?, bool)
stopWorker
public Task<StopWorkerCommandResponse> StopWorker(StopWorkerCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
StopWorkerCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
Unregister(UnregisterCommandSettings, CancellationToken, int?, bool)
unregister
public Task<UnregisterCommandResponse> Unregister(UnregisterCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
UnregisterCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
UpdateRegistration(UpdateRegistrationCommandSettings, CancellationToken, int?, bool)
updateRegistration
public Task<UpdateRegistrationCommandResponse> UpdateRegistration(UpdateRegistrationCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
UpdateRegistrationCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
Events
WorkerErrorReported
workerErrorReported
public event EventHandler<WorkerErrorReportedEventArgs> WorkerErrorReported
Event Type
WorkerRegistrationUpdated
workerRegistrationUpdated
public event EventHandler<WorkerRegistrationUpdatedEventArgs> WorkerRegistrationUpdated
Event Type
WorkerVersionUpdated
workerVersionUpdated
public event EventHandler<WorkerVersionUpdatedEventArgs> WorkerVersionUpdated