Table of Contents

Class PreloadAdapter

Namespace
OpenQA.Selenium.DevTools.V147.Preload
Assembly
Selenium.WebDriver.dll

Represents an adapter for the Preload domain to simplify the command interface.

public class PreloadAdapter
Inheritance
PreloadAdapter
Inherited Members

Constructors

PreloadAdapter(IDevToolsSession)

Initializes a new instance of the PreloadAdapter class.

public PreloadAdapter(IDevToolsSession session)

Parameters

session IDevToolsSession

The IDevToolsSession to be used with this adapter.

Exceptions

ArgumentNullException

If session is null.

Properties

Session

Gets the DevToolsSession associated with the adapter.

public IDevToolsSession Session { get; }

Property Value

IDevToolsSession

Methods

Disable(DisableCommandSettings?, CancellationToken, int?, bool)

disable

public Task<DisableCommandResponse?> Disable(DisableCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command DisableCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<DisableCommandResponse>

Enable(EnableCommandSettings?, CancellationToken, int?, bool)

enable

public Task<EnableCommandResponse?> Enable(EnableCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command EnableCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<EnableCommandResponse>

Events

PrefetchStatusUpdated

Fired when a prefetch attempt is updated.

public event EventHandler<PrefetchStatusUpdatedEventArgs>? PrefetchStatusUpdated

Event Type

EventHandler<PrefetchStatusUpdatedEventArgs>

PreloadEnabledStateUpdated

Fired when a preload enabled state is updated.

public event EventHandler<PreloadEnabledStateUpdatedEventArgs>? PreloadEnabledStateUpdated

Event Type

EventHandler<PreloadEnabledStateUpdatedEventArgs>

PreloadingAttemptSourcesUpdated

Send a list of sources for all preloading attempts in a document.

public event EventHandler<PreloadingAttemptSourcesUpdatedEventArgs>? PreloadingAttemptSourcesUpdated

Event Type

EventHandler<PreloadingAttemptSourcesUpdatedEventArgs>

PrerenderStatusUpdated

Fired when a prerender attempt is updated.

public event EventHandler<PrerenderStatusUpdatedEventArgs>? PrerenderStatusUpdated

Event Type

EventHandler<PrerenderStatusUpdatedEventArgs>

RuleSetRemoved

ruleSetRemoved

public event EventHandler<RuleSetRemovedEventArgs>? RuleSetRemoved

Event Type

EventHandler<RuleSetRemovedEventArgs>

RuleSetUpdated

Upsert. Currently, it is only emitted when a rule set added.

public event EventHandler<RuleSetUpdatedEventArgs>? RuleSetUpdated

Event Type

EventHandler<RuleSetUpdatedEventArgs>