Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anxuanzi/bua
/ functions
Functions
249 in github.com/anxuanzi/bua
⨍
Functions
249
◇
Types & classes
95
Function
GetPageInfo
GetPageInfo returns information about the current page state.
screenshot/screenshot.go:344
Method
GetRole
()
browser/page.go:697
Method
GetRole
GetRole implements ElementInfo interface for screenshot annotations.
dom/element.go:127
Method
GetScreenshotPaths
GetScreenshotPaths returns all screenshot paths from this run.
agent/agent.go:598
Function
GetStealthLaunchFlags
GetStealthLaunchFlags returns Chrome flags for stealth mode.
browser/stealth.go:299
Method
GetSteps
GetSteps returns all executed steps.
agent/agent.go:462
Method
GetSuccessRate
GetSuccessRate calculates the success rate of actions.
agent/history.go:168
Method
GetTagName
()
browser/page.go:696
Method
GetTagName
GetTagName implements ElementInfo interface for screenshot annotations.
dom/element.go:124
Method
GetText
()
browser/page.go:698
Method
GetText
GetText implements ElementInfo interface for screenshot annotations.
dom/element.go:130
Method
GetTitle
GetTitle returns the current page title.
bua.go:196
Method
GetTitle
GetTitle returns the current page title.
browser/browser.go:308
Method
GetURL
GetURL returns the current page URL.
browser/browser.go:295
Method
GetWidth
GetWidth implements BoundingBoxInfo interface.
dom/element.go:35
Method
GetWidth
()
dom/element.go:208
Method
GetX
GetX implements BoundingBoxInfo interface.
dom/element.go:29
Method
GetX
()
dom/element.go:206
Method
GetY
GetY implements BoundingBoxInfo interface.
dom/element.go:32
Method
GetY
()
dom/element.go:207
Function
HasContent
HasContent checks if the image has meaningful content (not mostly white).
screenshot/screenshot.go:290
Method
IsPageReady
IsPageReady checks if the current page is ready for screenshot capture.
browser/page.go:595
Method
IsStarted
IsStarted returns whether the agent has been started.
bua.go:207
Method
Len
Len returns the number of elements.
browser/page.go:670
Method
Len
Len returns the number of elements.
dom/element.go:185
Method
ListTabs
ListTabs returns information about all open tabs.
browser/browser.go:321
Method
Navigate
Navigate opens a URL using the stored context.
bua.go:299
Method
Navigate
Navigate navigates the current page to a URL.
browser/page.go:17
Method
NewTab
NewTab opens a new tab using the stored context.
bua.go:304
Method
NewTab
NewTab creates a new tab and optionally navigates to a URL.
browser/browser.go:342
Function
NewTokenBudget
NewTokenBudget creates a budget for a given model's context window.
agent/token.go:122
Function
NewTokenCounter
NewTokenCounter creates a new token counter with default settings.
agent/token.go:16
Method
Run
Run executes a task using the stored context.
bua.go:294
Method
Run
Run executes a task and returns the result.
agent/agent.go:206
Method
ScreenshotWithAnnotations
ScreenshotWithAnnotations takes a screenshot with element annotations. This is the main entry point for annotated screenshots.
browser/page.go:706
Method
SetMaxElements
SetMaxElements sets the maximum number of elements to extract.
browser/browser.go:450
Method
SetTask
SetTask sets the current task.
agent/message.go:54
Method
Start
Start launches the browser.
browser/browser.go:112
Method
SwitchTab
SwitchTab switches to a tab by ID.
browser/browser.go:389
Method
ToJSON
ToJSON serializes the element map as JSON.
dom/serialize.go:183
Method
ToMarkdown
ToMarkdown serializes the element map as markdown for documentation.
dom/serialize.go:153
Method
TruncateToTokenLimit
TruncateToTokenLimit truncates text to fit within a token limit. Returns the truncated text and whether truncation occurred.
agent/token.go:89
Method
WaitForPageReady
WaitForPageReady waits until the page is ready, with timeout.
browser/page.go:605
Function
WaitUntilReady
WaitUntilReady waits until the page is ready for screenshot, with timeout.
screenshot/screenshot.go:314
Method
WithContext
WithContext returns a helper for chaining operations with context.
bua.go:283
Function
main
()
tests/e2e/run_tests.go:61
Function
main
()
examples/01_quick_start/main.go:13
Function
main
()
examples/02_annotations/main.go:15
Function
testAnnotationDirectly
Direct low-level test using screenshot package
examples/02_annotations/main.go:137
← previous
201–249 of 249, ranked by callers