Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ElementAttribute = []string{
"placeholder", "id", "name", "value", "alt",
}
View Source
var ElementProperty = []string{
"innerHTML",
}
View Source
var KeywordAttribute = append(ElementAttribute, ElementProperty...)
View Source
var KeywordDict = map[string][]string{
"username": usernameKeyword,
"password": passwordKeyword,
"captcha": captchaKeyword,
"login": loginKeyword,
}
View Source
var SimpleKeywordDict = map[string][]string{
"username": simpleUsernameKeyword,
"password": simplePasswordKeyword,
"captcha": simpleCaptchaKeyword,
"login": simpleLoginKeyword,
}
Functions ¶
This section is empty.
Types ¶
type ConfigFunc ¶
type ConfigFunc func(config *PageConfig)
func WithContext ¶
func WithContext(context context.Context) ConfigFunc
func WithExePath ¶ added in v1.2.3
func WithExePath(exePath string) ConfigFunc
func WithLeakless ¶ added in v1.2.4
func WithLeakless(leakless LeaklessMode) ConfigFunc
func WithProxyConfig ¶
func WithProxyConfig(proxyStrs ...string) ConfigFunc
func WithUrlConfig ¶
func WithUrlConfig(urlStr string) ConfigFunc
func WithWsAddress ¶
func WithWsAddress(wsAddress string) ConfigFunc
type LeaklessMode ¶ added in v1.2.4
type LeaklessMode int
const ( LeaklessDefault LeaklessMode = 0 LeaklessOn LeaklessMode = 1 LeaklessOff LeaklessMode = -1 )
type PageConfig ¶
type PageConfig struct {
// contains filtered or unexported fields
}
func (*PageConfig) Context ¶
func (pageConfig *PageConfig) Context() context.Context
func (*PageConfig) ExePath ¶ added in v1.2.3
func (pc *PageConfig) ExePath() string
func (*PageConfig) Leakless ¶ added in v1.2.4
func (pageConfig *PageConfig) Leakless() LeaklessMode
func (*PageConfig) Url ¶
func (pc *PageConfig) Url() string
func (*PageConfig) WsAddress ¶
func (pc *PageConfig) WsAddress() string
Click to show internal directories.
Click to hide internal directories.