Documentation ¶
Index ¶
- Variables
- type Action
- func Blur(selector string) Action
- func CaptureRequests(macher func(*Request) bool, onRequest func(*Request)) Action
- func CaptureScreenshot(w io.Writer) Action
- func Click(selector string) Action
- func DocumentReady() Action
- func Focus(selector string) Action
- func GetNode(selector string, node *Node) Action
- func GetNodeAll(selector string, nodes *[]*Node) Action
- func Navigate(URL string) Action
- func OnNode(selector string, fn func(ctx context.Context, t *Target, node *Node) error) Action
- func OnNodeAll(selector string, fn func(ctx context.Context, t *Target, nodes ...*Node) error) Action
- func PageLoaded() Action
- func Sleep(d time.Duration) Action
- func WaitNode(selector string) Action
- func WaitNodeAll(selector string) Action
- func WaitResource(method string, urlpattern URLPattern) Action
- func WaitResourceWithMatcher(matcher func(*Request) bool) Action
- type ActionError
- type ActionFunc
- type CallOption
- type Connector
- type DOM
- type ErrTracer
- type Network
- type Node
- type NonErrTracer
- type Option
- type Page
- type Query
- type QueryOption
- func QueryAfter(fn func(ctx context.Context, t *Target, node *Node) error) QueryOption
- func QueryAfterAll(fn func(ctx context.Context, t *Target, nodes ...*Node) error) QueryOption
- func QueryFunc(fn func(ctx context.Context, t *Target, root *Node) ([]dom.NodeID, error)) QueryOption
- func QueryNode(ptr *Node) QueryOption
- func QueryNodes(ptr *[]*Node) QueryOption
- func QuerySearch(query string) QueryOption
- func QuerySelector(selector string) QueryOption
- func QuerySelectorAll(selector string) QueryOption
- type Request
- type Resource
- type ResourceOption
- type Target
- type Task
- type URLPattern
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Action ¶
Action
func CaptureRequests ¶
func CaptureScreenshot ¶
func DocumentReady ¶
func DocumentReady() Action
func GetNodeAll ¶
func PageLoaded ¶
func PageLoaded() Action
func WaitNodeAll ¶
func WaitResource ¶
func WaitResource(method string, urlpattern URLPattern) Action
func WaitResourceWithMatcher ¶
type ActionError ¶
type ActionError struct {
// contains filtered or unexported fields
}
func (*ActionError) Cause ¶
func (a *ActionError) Cause() error
func (*ActionError) Error ¶
func (a *ActionError) Error() string
type ActionFunc ¶
ActionFunc
type CallOption ¶
type CallOption func(*runtime.CallFunctionOnArgs)
type Connector ¶
type Connector struct {
// contains filtered or unexported fields
}
type NonErrTracer ¶
type NonErrTracer struct { }
func (*NonErrTracer) Trace ¶
func (n *NonErrTracer) Trace(err error)
type Option ¶
type Option func(*Connector)
Option connect option
func ActionTimeout ¶
func ConnectTimeout ¶
func TaskStepTimeout ¶
type Query ¶
type Query struct {
// contains filtered or unexported fields
}
func NewQuery ¶
func NewQuery(opt ...QueryOption) *Query
type QueryOption ¶
type QueryOption func(q *Query)
func QueryAfter ¶
func QueryAfterAll ¶
func QueryNode ¶
func QueryNode(ptr *Node) QueryOption
func QueryNodes ¶
func QueryNodes(ptr *[]*Node) QueryOption
func QuerySearch ¶
func QuerySearch(query string) QueryOption
func QuerySelector ¶
func QuerySelector(selector string) QueryOption
func QuerySelectorAll ¶
func QuerySelectorAll(selector string) QueryOption
type Request ¶
type Request struct { RequestID network.RequestID Req *network.RequestWillBeSentReply Resp *network.ResponseReceivedReply Failed *network.LoadingFailedReply Finished *network.LoadingFinishedReply FromCache bool }
func (*Request) IsFinished ¶
type Resource ¶
type Resource struct {
// contains filtered or unexported fields
}
func NewResource ¶
func NewResource(opt ...ResourceOption) *Resource
type ResourceOption ¶
type ResourceOption func(*Resource)
func ResourceAfter ¶
func ResourceAfter(fn func(*Request) error) ResourceOption
func ResourceDone ¶
func ResourceDone() ResourceOption
func ResourceMatch ¶
func ResourceMatch(fn func(*Request) bool) ResourceOption
func ResourcePattern ¶
func ResourcePattern(method string, urlpattern URLPattern) ResourceOption
type Target ¶
type Target struct {
// contains filtered or unexported fields
}
Target devtool target
type URLPattern ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.