Documentation
¶
Index ¶
- type Browser
- func (b *Browser) Attribute(selector string, scrollable bool, name string) (*string, error)
- func (b *Browser) Click(selector string, scrollable bool, duration ...string) error
- func (b *Browser) Close() error
- func (b *Browser) Element(selector string, scrollable bool) (*rod.Element, error)
- func (b *Browser) Elements(selector string, scrollable bool) ([]*rod.Element, error)
- func (b *Browser) ElementsFunc(selectors []string, scrollable bool, ...) (map[string]*rod.Element, error)
- func (b *Browser) Input(selector string, scrollable bool, value string) error
- func (b *Browser) Navigate(uri string) error
- func (b *Browser) Open(uri string, visible bool, args map[string]string) error
- func (b *Browser) Text(selector string, scrollable bool) (string, error)
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 (*Browser) ElementsFunc ¶
func (b *Browser) ElementsFunc(selectors []string, scrollable bool, callback func(selector string, element *rod.Element) bool) (map[string]*rod.Element, error)
元素集合函数
Click to show internal directories.
Click to hide internal directories.