cdp

package
v1.0.21 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Browser

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

浏览器

func NewBrowser

func NewBrowser() *Browser

构造函数

func (*Browser) Attribute

func (b *Browser) Attribute(selector string, scrollable bool, name string) (*string, error)

属性

func (*Browser) Click

func (b *Browser) Click(selector string, scrollable bool, duration ...string) error

点击

func (*Browser) Close

func (b *Browser) Close() error

关闭

func (*Browser) Element

func (b *Browser) Element(selector string, scrollable bool) (*rod.Element, error)

元素

func (*Browser) Elements

func (b *Browser) Elements(selector string, scrollable bool) ([]*rod.Element, error)

元素集合

func (*Browser) ElementsFunc

func (b *Browser) ElementsFunc(selectors []string, scrollable bool, callback func(selector string, element *rod.Element) bool) (map[string]*rod.Element, error)

元素集合函数

func (*Browser) Input

func (b *Browser) Input(selector string, scrollable bool, value string) error

输入

func (*Browser) Navigate

func (b *Browser) Navigate(uri string) error

导航

func (*Browser) Open

func (b *Browser) Open(uri string, visible bool, args map[string]string) error

打开

func (*Browser) Text

func (b *Browser) Text(selector string, scrollable bool) (string, error)

文本

Jump to

Keyboard shortcuts

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