Documentation
¶
Overview ¶
Package browser 提供基于 logrus 的日志记录器
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
type RodClient ¶
type RodClient interface {
InitWebClient(wsurl string) *rod.Browser
SearchParams(page *rod.Page, text string) (*rod.SearchResult, bool)
SaveHTML(page *rod.Page, path string) bool
SavePageScreen(pg *rod.Page, path ...string) []byte
SaveElementScreen(el *rod.Element, path ...string) []byte
HookResource(page *rod.Page)
StartWebPage(url string) *rod.Page
}
RodClient 定义统一接口
func UseRodTool ¶
func UseRodTool(options ...func(*option)) RodClient
Click to show internal directories.
Click to hide internal directories.