testutil

package
v0.18.5 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2018 License: MIT Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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