chrome

package
v0.0.0-...-fb5a763 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ChromeExecutable = LocateChrome

ChromeExecutable returns a string which points to the preferred Chrome executable file.

Functions

func LocateChrome

func LocateChrome() string

LocateChrome returns a path to the Chrome binary, or an empty string if Chrome installation is not found.

Types

type Chrome

type Chrome struct {
	Resolution       string
	ChromeTimeout    int
	ChromeTimeBudget int
	Path             string
	UserAgent        string
	Argvs            []string

	ScreenshotPath string
}

Chrome contains information about a Google Chrome instance, with methods to run on it.

func (*Chrome) Setup

func (chrome *Chrome) Setup()

Setup configures a Chrome struct with the path specified to what is available on this system.

Jump to

Keyboard shortcuts

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