Documentation ¶
Index ¶
- Constants
- type RelatedElements
- type Runner
- func (r *Runner) Click(element *rod.Element)
- func (r *Runner) CreateHijack() (chan string, *rod.HijackRouter)
- func (r *Runner) CreateObserver() error
- func (r *Runner) GetCurrentURL() (string, error)
- func (r *Runner) GetDeterminedElement(elements rod.Elements, keyword string) *rod.Element
- func (r *Runner) GetElement(ele string) (*rod.Element, error)
- func (r *Runner) GetElements(ele string) (rod.Elements, error)
- func (r *Runner) GetInfo()
- func (r *Runner) GetKeywordElement(elements rod.Elements, keyword string) *RelatedElements
- func (r *Runner) GetLatestClickElement(element *rod.Element) (*rod.Element, error)
- func (r *Runner) GetLatestElementofElement(element *rod.Element, target string) (*rod.Element, error)
- func (r *Runner) GetObserverResult() (string, error)
- func (r *Runner) Init() error
- func (r *Runner) InputCaptcha(cap_elements *RelatedElements) error
- func (r *Runner) InputWords(element *rod.Element, words string)
- func (r *Runner) Navigate(url string) error
- func (r *Runner) ScreenShot(path string)
- func (r *Runner) SearchCaptchafromIMG() (*RelatedElements, error)
- func (r *Runner) WaitEvent(e proto.Event) func()
- func (r *Runner) WaitLoad()
- func (r *Runner) WaitRequestIdle() func()
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 Runner ¶
type Runner struct { // domain Domain string CaptchaUrl string // contains filtered or unexported fields }
func (*Runner) CreateHijack ¶
func (r *Runner) CreateHijack() (chan string, *rod.HijackRouter)
func (*Runner) CreateObserver ¶
func (*Runner) GetCurrentURL ¶
func (*Runner) GetDeterminedElement ¶
func (*Runner) GetKeywordElement ¶
func (r *Runner) GetKeywordElement(elements rod.Elements, keyword string) *RelatedElements
func (*Runner) GetLatestClickElement ¶
func (*Runner) GetLatestElementofElement ¶
func (*Runner) GetObserverResult ¶
func (*Runner) InputCaptcha ¶
func (r *Runner) InputCaptcha(cap_elements *RelatedElements) error
func (*Runner) ScreenShot ¶
func (*Runner) SearchCaptchafromIMG ¶
func (r *Runner) SearchCaptchafromIMG() (*RelatedElements, error)
func (*Runner) WaitRequestIdle ¶
func (r *Runner) WaitRequestIdle() func()
Click to show internal directories.
Click to hide internal directories.