Autofill.triggerTrigger autofill on a form identified by the fieldId. If the field and related form cannot be autofilled, returns an error.
| Name | Type | Description |
|---|---|---|
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 (optional) | CreditCard | Credit card information to fill out the form. Credit card data is not saved. Mutually exclusive with `address`. |
address (optional) | Address | Address to fill out the form. Address data is not saved. Mutually exclusive with `card`. |
{
"id": 1,
"method": "Autofill.trigger",
"params": {
"fieldId": "fieldId-value"
}
}
{
"id": 1,
"result": {}
}
const result = await send('Autofill.trigger', {"fieldId": "fieldId-value"});
console.log(result);