Methods

Chrome DevTools

Autofill.disable #

Disables autofill domain notifications.


Chrome DevTools

Autofill.enable #

Enables autofill domain notifications.


Chrome DevTools

Autofill.setAddresses #

Set addresses so that developers can verify their forms implementation.

Parameters

addresses
array[ Address ]

Chrome DevTools

Autofill.trigger #

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

Parameters

fieldId
DOM.BackendNodeId

Identifies a field that serves as an anchor for autofill.

frameId
Optional
Page.FrameId

Identifies the frame that field belongs to.

card
CreditCard

Credit card information to fill out the form. Credit card data is not saved.

Events

Chrome DevTools

Autofill.addressFormFilled #

Emitted when an address form is filled.

Parameters

filledFields
array[ FilledField ]

Information about the fields that were filled

addressUi
AddressUI

An UI representation of the address used to fill the form. Consists of a 2D array where each child represents an address/profile line.

Types

Chrome DevTools

Autofill.Address #

Type: object

Properties

fields
array[ AddressField ]

fields and values defining an address.


Chrome DevTools

Autofill.AddressField #

Type: object

Properties

name
string

address field name, for example GIVEN_NAME.

value
string

address field value, for example Jon Doe.


Chrome DevTools

Autofill.AddressFields #

A list of address fields.

Type: object

Properties

fields
array[ AddressField ]

Chrome DevTools

Autofill.AddressUI #

Defines how an address can be displayed like in chrome://settings/addresses. Address UI is a two dimensional array, each inner array is an "address information line", and when rendered in a UI surface should be displayed as such. The following address UI for instance: [[{name: "GIVE_NAME", value: "Jon"}, {name: "FAMILY_NAME", value: "Doe"}], [{name: "CITY", value: "Munich"}, {name: "ZIP", value: "81456"}]] should allow the receiver to render: Jon Doe Munich 81456

Type: object

Properties

addressFields
array[ AddressFields ]

A two dimension array containing the representation of values from an address profile.


Chrome DevTools

Autofill.CreditCard #

Type: object

Properties

number
string

16-digit credit card number.

name
string

Name of the credit card owner.

expiryMonth
string

2-digit expiry month.

expiryYear
string

4-digit expiry year.

cvc
string

3-digit card verification code.


Chrome DevTools

Autofill.FilledField #

Type: object

Properties

htmlType
string

The type of the field, e.g text, password etc.

id
string

the html id

name
string

the html name

value
string

the field value

autofillType
string

The actual field type, e.g FAMILY_NAME

fillingStrategy
FillingStrategy

The filling strategy

frameId
Page.FrameId

The frame the field belongs to

fieldId
DOM.BackendNodeId

The form field's DOM node


Chrome DevTools

Autofill.FillingStrategy #

Specified whether a filled field was done so by using the html autocomplete attribute or autofill heuristics.

Type: string

Allowed values: autocompleteAttribute, autofillInferred