Documentation
¶
Index ¶
- func BytePtrToString(ptr uintptr) string
- func CheckTrust()
- func MkString(s string) uintptr
- type App
- type Attributes
- type Device
- type Element
- func (e *Element) Attributes() Attributes
- func (e *Element) Buttons() []*Element
- func (e *Element) Children() []*Element
- func (e *Element) ElementByID(id string) *Element
- func (e *Element) Exists() bool
- func (e *Element) FindChildren(role string) []*Element
- func (e *Element) Frame() corefoundation.CGRect
- func (e *Element) Identifier() string
- func (e *Element) Label() string
- func (e *Element) PerformAction(action string)
- func (e *Element) Query(p QueryParams) []*Element
- func (e *Element) Role() string
- func (e *Element) Screenshot() ([]byte, error)
- func (e *Element) Tap()
- func (e *Element) Title() string
- func (e *Element) Tree() string
- func (e *Element) VisualTree() string
- func (e *Element) Windows() []*Element
- type QueryParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytePtrToString ¶
func CheckTrust ¶
func CheckTrust()
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App ...
func Application ¶
func Application() *App
func ApplicationWithBundleID ¶
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) PressVolumeDown ¶
func (d *Device) PressVolumeDown()
func (*Device) PressVolumeUp ¶
func (d *Device) PressVolumeUp()
func (*Device) SetOrientation ¶
type Element ¶
type Element struct {
// contains filtered or unexported fields
}
Element
func ElementByID ¶
func (*Element) Attributes ¶
func (e *Element) Attributes() Attributes
func (*Element) ElementByID ¶
func (*Element) FindChildren ¶
Helper filter functions
func (*Element) Frame ¶
func (e *Element) Frame() corefoundation.CGRect
func (*Element) Identifier ¶
func (*Element) PerformAction ¶
func (*Element) Query ¶
func (e *Element) Query(p QueryParams) []*Element
func (*Element) Screenshot ¶
func (*Element) VisualTree ¶
VisualTree returns a tree representation of the element and its children using ASCII box-drawing characters.
Click to show internal directories.
Click to hide internal directories.