browser

package
v0.0.0-...-eb06915 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectCDP

func ConnectCDP(ctx context.Context, url string) (conn *rpcc.Conn, c *cdp.Client, err error)

ConnectCDP provides a connection to dev tools via remote debugging port, and a cdp.Client instance The cdp.Client will cause Chrome to open the URL specified

func LaunchChrome

func LaunchChrome()

LaunchChrome will launch chrome on a mac with remote debugging open on port 9222

func Reload

func Reload(ctx context.Context, p cdp.Page) (err error)

Reload is used to reload the current page via browser automation

Types

This section is empty.

Jump to

Keyboard shortcuts

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