browser

package
v0.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MouseButtonLeft   = 0
	MouseButtonMiddle = 1
	MouseButtonRight  = 2
)
View Source
const (
	PluginTitle   = "rtp-agent.plugins.browser"
	PluginVersion = "v0.1.6"
	PluginPackage = "rtp-agent.plugins.browser"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PageActionEvent added in v0.0.15

type PageActionEvent struct {
	Type       string
	X          int
	Y          int
	Button     int
	Down       bool
	ClickCount int
	Modifiers  string
	DeltaX     int
	DeltaY     int
	Text       string
	Duration   float64
}

PageActionEvent is the provider-agnostic input event emitted by PageActions.

type PageActions

type PageActions struct {
	// contains filtered or unexported fields
}

PageActions records the typed input API expected by computer-use tools.

func NewPageActions

func NewPageActions() *PageActions

func (*PageActions) Close

func (p *PageActions) Close()

func (*PageActions) DoubleClick

func (p *PageActions) DoubleClick(x, y int)

func (*PageActions) Events added in v0.0.15

func (p *PageActions) Events() []PageActionEvent

func (*PageActions) HoldKey

func (p *PageActions) HoldKey(key string, duration float64)

func (*PageActions) Key

func (p *PageActions) Key(key string)

func (*PageActions) LastFrame

func (p *PageActions) LastFrame() []byte

func (*PageActions) LeftClick

func (p *PageActions) LeftClick(x, y int, modifiers string)

func (*PageActions) LeftClickDrag

func (p *PageActions) LeftClickDrag(sx, sy, ex, ey int)

func (*PageActions) LeftMouseDown

func (p *PageActions) LeftMouseDown(x, y int)

func (*PageActions) LeftMouseUp

func (p *PageActions) LeftMouseUp(x, y int)

func (*PageActions) MiddleClick

func (p *PageActions) MiddleClick(x, y int)

func (*PageActions) MouseMove

func (p *PageActions) MouseMove(x, y int)

func (*PageActions) RightClick

func (p *PageActions) RightClick(x, y int)

func (*PageActions) Scroll

func (p *PageActions) Scroll(x, y int, direction string, amount int)

func (*PageActions) SetLastFrame added in v0.0.15

func (p *PageActions) SetLastFrame(frame []byte)

func (*PageActions) TripleClick

func (p *PageActions) TripleClick(x, y int)

func (*PageActions) TypeText

func (p *PageActions) TypeText(text string)

func (*PageActions) Wait

func (p *PageActions) Wait()

type Plugin added in v0.0.15

type Plugin struct{}

func (Plugin) DownloadFiles added in v0.0.15

func (Plugin) DownloadFiles() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL