trigger method
Future<void>
trigger(
- BackendNodeId fieldId, {
- FrameId? frameId,
- CreditCard? card,
- Address? address,
Trigger autofill on a form identified by the fieldId.
If the field and related form cannot be autofilled, returns an error.
fieldId Identifies a field that serves as an anchor for autofill.
frameId Identifies the frame that field belongs to.
card Credit card information to fill out the form. Credit card data is not saved. Mutually exclusive with address.
address Address to fill out the form. Address data is not saved. Mutually exclusive with card.
Implementation
Future<void> trigger(
dom.BackendNodeId fieldId, {
page.FrameId? frameId,
CreditCard? card,
Address? address,
}) async {
await _client.send('Autofill.trigger', {
'fieldId': fieldId,
if (frameId != null) 'frameId': frameId,
if (card != null) 'card': card,
if (address != null) 'address': address,
});
}