Autofill🧪
为自动填充定义命令和事件。
EN
Defines commands and events for Autofill.
✅️️ Methods
🔨Autofill.disable
禁用自动填充域名通知。
EN
Disables autofill domain notifications.
🔨Autofill.enable
启用自动填充域名通知。
EN
Enables autofill domain notifications.
🔨Autofill.setAddresses
设置地址,以便开发者可以验证其表单实现。
EN
Set addresses so that developers can verify their forms implementation.
| 参数 | 必填 | 标记 | 类型 | 描述 | 原文 |
|---|---|---|---|---|---|
| addresses | ✔️ | array[Address] |
🔨Autofill.trigger
在由 fieldId 标识的表单上触发自动填充。如果该字段及相关表单无法自动填充,则返回错误。
EN
Trigger autofill on a form identified by the fieldId. If the field and related form cannot be autofilled, returns an error.
| 参数 | 必填 | 标记 | 类型 | 描述 | 原文 |
|---|---|---|---|---|---|
| fieldId | ✔️ | DOM.BackendNodeId | 标识一个作为自动填充锚点的字段。 | ENIdentifies a field that serves as an anchor for autofill. | |
| frameId | Page.FrameId | 标识字段所属的框架。 | ENIdentifies the frame that field belongs to. | ||
| card | CreditCard | 填写表单所需的信用卡信息。信用卡数据不会被保存。与 address 互斥。 | ENCredit card information to fill out the form. Credit card data is not saved. Mutually exclusive withaddress. | ||
| address | Address | 填写表单的地址。地址数据不会被保存。与 card 互斥。 | ENAddress to fill out the form. Address data is not saved. Mutually exclusive withcard. |