testutil

package
v0.18.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Conn   *rpcc.Conn
	Client *cdp.Client
	// contains filtered or unexported fields
}

Client represents a test client.

func NewClient

func NewClient(ctx context.Context, t *testing.T) *Client

NewClient returns a new test client.

func (*Client) NewPage

func (c *Client) NewPage(ctx context.Context) *Target

NewPage creates a new page target.

type Target

type Target struct {
	// contains filtered or unexported fields
}

Target represents a (page) target.

func NewTarget

func NewTarget(ctx context.Context, t *testing.T, c *cdp.Client) *Target

NewTarget creates a new target.

func (*Target) Close

func (t *Target) Close()

Close closes the target.

func (*Target) ID

func (t *Target) ID() target.ID

ID returns the target ID.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL