Source File
autofill.go
Belonging Package
github.com/chromedp/cdproto/autofill
// Package autofill provides the Chrome DevTools Protocol// commands, types, and events for the Autofill domain.//// Defines commands and events for Autofill.//// Generated by the cdproto-gen command.package autofill// Code generated by cdproto-gen. DO NOT EDIT.import ()// TriggerParams trigger autofill on a form identified by the fieldId. If the// field and related form cannot be autofilled, returns an error.type TriggerParams struct {FieldID cdp.BackendNodeID `json:"fieldId"` // Identifies a field that serves as an anchor for autofill.FrameID cdp.FrameID `json:"frameId,omitempty"` // Identifies the frame that field belongs to.Card *CreditCard `json:"card"` // Credit card information to fill out the form. Credit card data is not saved.}// Trigger trigger autofill on a form identified by the fieldId. If the field// and related form cannot be autofilled, returns an error.//// See: https://chromedevtools.github.io/devtools-protocol/tot/Autofill#method-trigger//// parameters://// fieldID - Identifies a field that serves as an anchor for autofill.// card - Credit card information to fill out the form. Credit card data is not saved.func ( cdp.BackendNodeID, *CreditCard) *TriggerParams {return &TriggerParams{FieldID: ,Card: ,}}// WithFrameID identifies the frame that field belongs to.func ( TriggerParams) ( cdp.FrameID) *TriggerParams {.FrameID =return &}// Do executes Autofill.trigger against the provided context.func ( *TriggerParams) ( context.Context) ( error) {return cdp.Execute(, CommandTrigger, , nil)}// SetAddressesParams set addresses so that developers can verify their forms// implementation.type SetAddressesParams struct {Addresses []*Address `json:"addresses"`}// SetAddresses set addresses so that developers can verify their forms// implementation.//// See: https://chromedevtools.github.io/devtools-protocol/tot/Autofill#method-setAddresses//// parameters://// addressesfunc ( []*Address) *SetAddressesParams {return &SetAddressesParams{Addresses: ,}}// Do executes Autofill.setAddresses against the provided context.func ( *SetAddressesParams) ( context.Context) ( error) {return cdp.Execute(, CommandSetAddresses, , nil)}// DisableParams disables autofill domain notifications.type DisableParams struct{}// Disable disables autofill domain notifications.//// See: https://chromedevtools.github.io/devtools-protocol/tot/Autofill#method-disablefunc () *DisableParams {return &DisableParams{}}// Do executes Autofill.disable against the provided context.func ( *DisableParams) ( context.Context) ( error) {return cdp.Execute(, CommandDisable, nil, nil)}// EnableParams enables autofill domain notifications.type EnableParams struct{}// Enable enables autofill domain notifications.//// See: https://chromedevtools.github.io/devtools-protocol/tot/Autofill#method-enablefunc () *EnableParams {return &EnableParams{}}// Do executes Autofill.enable against the provided context.func ( *EnableParams) ( context.Context) ( error) {return cdp.Execute(, CommandEnable, nil, nil)}// Command names.const (CommandTrigger = "Autofill.trigger"CommandSetAddresses = "Autofill.setAddresses"CommandDisable = "Autofill.disable"CommandEnable = "Autofill.enable")
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |