chrome

package
v0.0.0-...-fe67f73 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UI

type UI struct {
	*chromedevtools.Chrome
	// contains filtered or unexported fields
}

func New

func New(chromeExe, url, userDataDir string, width, height int, customArgs ...string) (*UI, error)

New returns a new HTML5 UI for the given URL, user profile directory, window size and other options passed to the browser engine. If URL is an empty string - a blank page is displayed. If user profile directory is an empty string - a temporary directory is created and it will be removed on ui.Close(). You might want to use "--headless" custom CLI argument to test your UI code.

func (*UI) Bind

func (u *UI) Bind(name string, f interface{}) error

func (*UI) Close

func (u *UI) Close() error

func (*UI) Done

func (u *UI) Done() <-chan struct{}

func (*UI) Eval

func (u *UI) Eval(js string) (jsonvalue.V, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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