func (d *domainClient) DiscardConsoleEntries(ctx context.Context) (err error) {
	err = rpcc.Invoke(ctx, "Runtime.discardConsoleEntries", nil, nil, d.conn)
	if err != nil {
		err = &internal.OpError{Domain: "Runtime", Op: "DiscardConsoleEntries", Err: err}
	}
	return
}
DiscardConsoleEntries invokes the Runtime method. Discards collected
exceptions and console API calls.
package runtime
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) AwaitPromise(ctx context.Context, args *AwaitPromiseArgs) (reply *AwaitPromiseReply, err error) {
	reply = new(AwaitPromiseReply)
	if args != nil {
		err = rpcc.Invoke(ctx, "Runtime.awaitPromise", args, reply, d.conn)
	} else {
		err = rpcc.Invoke(ctx, "Runtime.awaitPromise", nil, reply, d.conn)
	}
	if err != nil {
		err = &internal.OpError{Domain: "Runtime", Op: "AwaitPromise", Err: err}
	}
	return
}
func (d *domainClient) CallFunctionOn(ctx context.Context, args *CallFunctionOnArgs) (reply *CallFunctionOnReply, err error) {
	reply = new(CallFunctionOnReply)
	if args != nil {
		err = rpcc.Invoke(ctx, "Runtime.callFunctionOn", args, reply, d.conn)
	} else {
		err = rpcc.Invoke(ctx, "Runtime.callFunctionOn", nil, reply, d.conn)
	}
	if err != nil {
		err = &internal.OpError{Domain: "Runtime", Op: "CallFunctionOn", Err: err}
	}
	return
}
func (d *domainClient) CompileScript(ctx context.Context, args *CompileScriptArgs) (reply *CompileScriptReply, err error) {
	reply = new(CompileScriptReply)
	if args != nil {
		err = rpcc.Invoke(ctx, "Runtime.compileScript", args, reply, d.conn)
	} else {
		err = rpcc.Invoke(ctx, "Runtime.compileScript", nil, reply, d.conn)
	}
	if err != nil {
		err = &internal.OpError{Domain: "Runtime", Op: "CompileScript", Err: err}
	}
	return
}
func (d *domainClient) Disable(ctx context.Context) (err error) {
	err = rpcc.Invoke(ctx, "Runtime.disable", nil, nil, d.conn)
	if err != nil {
		err = &internal.OpError{Domain: "Runtime", Op: "Disable", Err: err}
	}
	return
}