ui

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytePtrToString

func BytePtrToString(ptr uintptr) string

func CheckTrust

func CheckTrust()

func MkString

func MkString(s string) uintptr

Types

type App

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

App ...

func Application

func Application() *App

func ApplicationWithBundleID

func ApplicationWithBundleID(bid string) *App

func NewApp

func NewApp(bundleID string) *App

func (*App) Activate

func (a *App) Activate()

func (*App) Element

func (a *App) Element() *Element

func (*App) Exists

func (a *App) Exists() bool

func (*App) Launch

func (a *App) Launch()

func (*App) Terminate

func (a *App) Terminate()

func (*App) Tree

func (a *App) Tree() string

type Attributes

type Attributes struct {
	Label      string
	Identifier string
	Title      string
	Value      string
	Frame      corefoundation.CGRect
	Enabled    bool
	Selected   bool
	HasFocus   bool
}

Attributes struct for Inspect

type Device

type Device struct{}

Device stub for AX

func SharedDevice

func SharedDevice() *Device

func (*Device) PressHome

func (d *Device) PressHome()

func (*Device) PressLock

func (d *Device) PressLock()

func (*Device) PressVolumeDown

func (d *Device) PressVolumeDown()

func (*Device) PressVolumeUp

func (d *Device) PressVolumeUp()

func (*Device) SetOrientation

func (d *Device) SetOrientation(o int)

type Element

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

Element

func ElementByID

func ElementByID(id string) *Element

func (*Element) Attributes

func (e *Element) Attributes() Attributes

func (*Element) Buttons

func (e *Element) Buttons() []*Element

func (*Element) Children

func (e *Element) Children() []*Element

func (*Element) ElementByID

func (e *Element) ElementByID(id string) *Element

func (*Element) Exists

func (e *Element) Exists() bool

func (*Element) FindChildren

func (e *Element) FindChildren(role string) []*Element

Helper filter functions

func (*Element) Frame

func (e *Element) Frame() corefoundation.CGRect

func (*Element) Identifier

func (e *Element) Identifier() string

func (*Element) Label

func (e *Element) Label() string

func (*Element) PerformAction

func (e *Element) PerformAction(action string)

func (*Element) Query

func (e *Element) Query(p QueryParams) []*Element

func (*Element) Role

func (e *Element) Role() string

func (*Element) Screenshot

func (e *Element) Screenshot() ([]byte, error)

func (*Element) Tap

func (e *Element) Tap()

func (*Element) Title

func (e *Element) Title() string

func (*Element) Tree

func (e *Element) Tree() string

func (*Element) VisualTree

func (e *Element) VisualTree() string

VisualTree returns a tree representation of the element and its children using ASCII box-drawing characters.

func (*Element) Windows

func (e *Element) Windows() []*Element

type QueryParams

type QueryParams struct {
	Role       string
	Title      string // Contains match
	Identifier string // Exact match
	Label      string // Contains match
}

Jump to

Keyboard shortcuts

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