browser

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ActionQuestion    actionType = "question"
	ActionPageRequest actionType = "page_request"
	ActionNavigate    actionType = "navigate"
	ActionClick       actionType = "click"
	ActionFill        actionType = "fill"
	ActionPress       actionType = "press"
	ActionExtract     actionType = "extract"
	ActionScroll      actionType = "scroll"
	ActionWait        actionType = "wait"
	ActionScreenshot  actionType = "screenshot"
)
View Source
const (
	AlertAccept  alertActionType = "accept"
	AlertDismiss alertActionType = "dismiss"
)
View Source
const (
	ScrollUp    scrollDirection = "up"
	ScrollDown  scrollDirection = "down"
	ScrollLeft  scrollDirection = "left"
	ScrollRight scrollDirection = "right"
)

Variables

This section is empty.

Functions

func OnStart

func OnStart(
	ctx context.Context,
	selector tools.Selector,
	logger tools.Logger,
	inputHandler tools.InputHandler,
	ttjBackend tools.TextToJSONBackend,
	conversation chat.Conversation,
) error

Types

type ElementInfo

type ElementInfo struct {
	Selector    string `json:"selector"`
	IsVisible   bool   `json:"is_visible"`
	IsClickable bool   `json:"is_clickable"`
	IsInputable bool   `json:"is_inputable"`
	Text        string `json:"text"`
}

func (ElementInfo) String

func (e ElementInfo) String() string

Jump to

Keyboard shortcuts

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