implement

package
v1.2.6-sp4 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const OBRESULT = `
()=>{
	observer.disconnect();
	return added;
}
`
View Source
const OBSERVER = `` /* 953-byte string literal not displayed */

Variables

This section is empty.

Functions

This section is empty.

Types

type RelatedElements

type RelatedElements struct {
	rod.Element
	RelatedElement *rod.Element
}

type Runner

type Runner struct {

	// domain
	Domain     string
	CaptchaUrl string
	// contains filtered or unexported fields
}

func (*Runner) Click

func (r *Runner) Click(element *rod.Element)

func (*Runner) CreateHijack

func (r *Runner) CreateHijack() (chan string, *rod.HijackRouter)

func (*Runner) CreateObserver

func (r *Runner) CreateObserver() error

func (*Runner) GetCurrentURL

func (r *Runner) GetCurrentURL() (string, error)

func (*Runner) GetDeterminedElement

func (r *Runner) GetDeterminedElement(elements rod.Elements, keyword string) *rod.Element

func (*Runner) GetElement

func (r *Runner) GetElement(ele string) (*rod.Element, error)

func (*Runner) GetElements

func (r *Runner) GetElements(ele string) (rod.Elements, error)

func (*Runner) GetInfo

func (r *Runner) GetInfo()

func (*Runner) GetKeywordElement

func (r *Runner) GetKeywordElement(elements rod.Elements, keyword string) *RelatedElements

func (*Runner) GetLatestClickElement

func (r *Runner) GetLatestClickElement(element *rod.Element) (*rod.Element, error)

func (*Runner) GetLatestElementofElement

func (r *Runner) GetLatestElementofElement(element *rod.Element, target string) (*rod.Element, error)

func (*Runner) GetObserverResult

func (r *Runner) GetObserverResult() (string, error)

func (*Runner) Init

func (r *Runner) Init() error

func (*Runner) InputCaptcha

func (r *Runner) InputCaptcha(cap_elements *RelatedElements) error

func (*Runner) InputWords

func (r *Runner) InputWords(element *rod.Element, words string)

func (*Runner) Navigate

func (r *Runner) Navigate(url string) error

func (*Runner) ScreenShot

func (r *Runner) ScreenShot(path string)

func (*Runner) SearchCaptchafromIMG

func (r *Runner) SearchCaptchafromIMG() (*RelatedElements, error)

func (*Runner) WaitEvent

func (r *Runner) WaitEvent(e proto.Event) func()

func (*Runner) WaitLoad

func (r *Runner) WaitLoad()

func (*Runner) WaitRequestIdle

func (r *Runner) WaitRequestIdle() func()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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