chrome

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewExecAllocatorOptions

func NewExecAllocatorOptions(headless, hideScrollbars bool) []chromedp.ExecAllocatorOption

TODO: Fix to can change flags

Types

type Chrome

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

func New

func New(debug bool) *Chrome

func (*Chrome) TakeScreenshot

func (c *Chrome) TakeScreenshot(ctx context.Context, args *ScreenshotArgs) error

type ScreenshotArgs

type ScreenshotArgs struct {
	URL          string
	Cookie       string
	WaitSelector string
	Filename     string
	Width        int64
	Height       int64
}

Jump to

Keyboard shortcuts

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