func (d *domainClient) AddCredential(ctx context.Context, args *AddCredentialArgs) (err error) {
	if args != nil {
		err = rpcc.Invoke(ctx, "WebAuthn.addCredential", args, nil, d.conn)
	} else {
		err = rpcc.Invoke(ctx, "WebAuthn.addCredential", nil, nil, d.conn)
	}
	if err != nil {
		err = &internal.OpError{Domain: "WebAuthn", Op: "AddCredential", Err: err}
	}
	return
}
AddCredential invokes the WebAuthn method. Adds the credential to the
specified authenticator.
package webauthn
import (
	"context"
	"github.com/mafredri/cdp/protocol/internal"
	"github.com/mafredri/cdp/rpcc"
)
type domainClient struct{ conn *rpcc.Conn }
func NewClient(conn *rpcc.Conn) *domainClient {
	return &domainClient{conn: conn}
}
func (d *domainClient) Enable(ctx context.Context) (err error) {
	err = rpcc.Invoke(ctx, "WebAuthn.enable", nil, nil, d.conn)
	if err != nil {
		err = &internal.OpError{Domain: "WebAuthn", Op: "Enable", Err: err}
	}
	return
}
func (d *domainClient) Disable(ctx context.Context) (err error) {
	err = rpcc.Invoke(ctx, "WebAuthn.disable", nil, nil, d.conn)
	if err != nil {
		err = &internal.OpError{Domain: "WebAuthn", Op: "Disable", Err: err}
	}
	return
}
func (d *domainClient) AddVirtualAuthenticator(ctx context.Context, args *AddVirtualAuthenticatorArgs) (reply *AddVirtualAuthenticatorReply, err error) {
	reply = new(AddVirtualAuthenticatorReply)
	if args != nil {
		err = rpcc.Invoke(ctx, "WebAuthn.addVirtualAuthenticator", args, reply, d.conn)
	} else {
		err = rpcc.Invoke(ctx, "WebAuthn.addVirtualAuthenticator", nil, reply, d.conn)
	}
	if err != nil {
		err = &internal.OpError{Domain: "WebAuthn", Op: "AddVirtualAuthenticator", Err: err}
	}
	return
}
func (d *domainClient) RemoveVirtualAuthenticator(ctx context.Context, args *RemoveVirtualAuthenticatorArgs) (err error) {
	if args != nil {
		err = rpcc.Invoke(ctx, "WebAuthn.removeVirtualAuthenticator", args, nil, d.conn)
	} else {
		err = rpcc.Invoke(ctx, "WebAuthn.removeVirtualAuthenticator", nil, nil, d.conn)
	}
	if err != nil {
		err = &internal.OpError{Domain: "WebAuthn", Op: "RemoveVirtualAuthenticator", Err: err}
	}
	return
}