Table of Contents

Class AutofillAdapter

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

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

public class AutofillAdapter
Inheritance
AutofillAdapter
Inherited Members

Constructors

AutofillAdapter(IDevToolsSession)

Initializes a new instance of the AutofillAdapter class.

public AutofillAdapter(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)

Disables autofill domain notifications.

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)

Enables autofill domain notifications.

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>

SetAddresses(SetAddressesCommandSettings, CancellationToken, int?, bool)

Set addresses so that developers can verify their forms implementation.

public Task<SetAddressesCommandResponse?> SetAddresses(SetAddressesCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command SetAddressesCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<SetAddressesCommandResponse>

Trigger(TriggerCommandSettings, CancellationToken, int?, bool)

Trigger autofill on a form identified by the fieldId. If the field and related form cannot be autofilled, returns an error.

public Task<TriggerCommandResponse?> Trigger(TriggerCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command TriggerCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<TriggerCommandResponse>

Events

AddressFormFilled

Emitted when an address form is filled.

public event EventHandler<AddressFormFilledEventArgs>? AddressFormFilled

Event Type

EventHandler<AddressFormFilledEventArgs>