gorod

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: MIT Imports: 10 Imported by: 0

README

GoRod

Build Status Go Report Card Docs License

gorod is a package that provides helpers for the Rod (rod) web automation library.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RetrieveWriteScreenshotFullPage

func RetrieveWriteScreenshotFullPage(browser *rod.Browser, srcURL, filename string, opts *proto.PageCaptureScreenshot) (*rod.Page, error)

Types

type ForegroundBrowser

type ForegroundBrowser struct {
	Launcher *launcher.Launcher
	Browser  *rod.Browser
}

func NewForegroundBrowserPaused

func NewForegroundBrowserPaused(navURL string, delaySeconds uint, paused bool) ForegroundBrowser

func (*ForegroundBrowser) Close

func (fb *ForegroundBrowser) Close()

func (*ForegroundBrowser) GetWriteFileHTML

func (fb *ForegroundBrowser) GetWriteFileHTML(url, filename string, perm os.FileMode, force bool, writeDelay time.Duration) error

func (*ForegroundBrowser) GetWriteFileMulti

func (fb *ForegroundBrowser) GetWriteFileMulti(srcURL, filenameHTML string, perm os.FileMode, force bool, opts *proto.PageCaptureScreenshot) error

GetWriteFileMulti stores HTML and PNG screenshots.

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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