Documentation ¶
Index ¶
- type Browser
- func (browser *Browser) Close()
- func (browser *Browser) Init(execOptions map[string]interface{}) error
- func (browser *Browser) IsRunning() bool
- func (browser *Browser) MouseClick(waitVisible string, x, y int64, element string, timeout time.Duration) error
- func (browser *Browser) Run() error
- func (browser *Browser) Screenshot(width int, height int, sigma float64) ([]byte, string, error)
- func (browser *Browser) Startup() error
- func (browser *Browser) Tasks(tasks chromedp.Tasks) error
- type MouseAction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Browser ¶
type Browser struct { TaskCtx context.Context TempDir string // contains filtered or unexported fields }
func NewBrowser ¶
func (*Browser) MouseClick ¶
func (*Browser) Screenshot ¶
type MouseAction ¶
MouseAction are mouse input event actions
func MouseClickElementAction ¶
func MouseClickElementAction(element string, opts ...chromedp.MouseOption) MouseAction
MouseClickXYAction is an action that sends a left mouse button click (ie, mousePressed and mouseReleased event) to the X, Y location.
func MouseClickXYAction ¶
func MouseClickXYAction(x, y float64, opts ...chromedp.MouseOption) MouseAction
MouseClickXYAction is an action that sends a left mouse button click (ie, mousePressed and mouseReleased event) to the X, Y location.
Click to show internal directories.
Click to hide internal directories.