Documentation
¶
Index ¶
- Variables
- func ExpandUser(path string) string
- func FindChrome(explicit string) (string, error)
- func NavigateExistingTarget(cdpURL, targetID, address string, timeout time.Duration) error
- type Options
- type ResolvedAddress
- type Runtime
- func (r *Runtime) Back() error
- func (r *Runtime) CDPEndpoint() string
- func (r *Runtime) Click(x, y int) error
- func (r *Runtime) Close()
- func (r *Runtime) CurrentURL() string
- func (r *Runtime) Forward() error
- func (r *Runtime) HideVirtualMouse() error
- func (r *Runtime) IsLoading() bool
- func (r *Runtime) MoveMouse(x, y int) error
- func (r *Runtime) Navigate(address string) error
- func (r *Runtime) Press(key string) error
- func (r *Runtime) Reload() error
- func (r *Runtime) ResetZoom() (float64, error)
- func (r *Runtime) Resize(width, height int) error
- func (r *Runtime) Screenshot() ([]byte, error)
- func (r *Runtime) ScrollBy(deltaX, deltaY int) error
- func (r *Runtime) ScrollTo(position string) error
- func (r *Runtime) SetZoom(value float64) (float64, error)
- func (r *Runtime) TargetID() string
- func (r *Runtime) TypeText(text string) error
- func (r *Runtime) WaitForRenderReady() error
- func (r *Runtime) ZoomBy(delta float64) (float64, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTargetNotFound = errors.New("target not found")
Functions ¶
func ExpandUser ¶
func FindChrome ¶
Types ¶
type Options ¶
type Options struct {
BrowserLaunchOptions map[string]any
BrowserPath string
CDPPort int
CDPURL string
Cwd string
DeviceScaleFactor float64
Headless bool
ProfileDir string
}
func (Options) CDPEndpoint ¶
type ResolvedAddress ¶
type ResolvedAddress struct {
URL string
}
func ResolveAddress ¶
func ResolveAddress(input, cwd string) (ResolvedAddress, error)
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
func (*Runtime) CDPEndpoint ¶
func (*Runtime) CurrentURL ¶
func (*Runtime) HideVirtualMouse ¶
func (*Runtime) Screenshot ¶
func (*Runtime) WaitForRenderReady ¶
Click to show internal directories.
Click to hide internal directories.