Documentation ¶
Index ¶
- type AXApp
- func (a *AXApp) Click(element string, elementType *elements.ElementType, strict bool) error
- func (a *AXApp) ClickWithOrder(element string, elementType *elements.ElementType, strict bool, order int8) error
- func (a *AXApp) Exists(element string, elementType *elements.ElementType, strict bool) (bool, error)
- func (a *AXApp) Print(elementFilter string, strict bool)
- func (a *AXApp) Reload() (api.AppHandler, error)
- func (a *AXApp) SetValue(element string, elementType *elements.ElementType, strict bool, value string) error
- func (a *AXApp) SetValueOnFocus(value string) error
- func (a *AXApp) SetValueWithOrder(element string, elementType *elements.ElementType, strict bool, order int8, ...) error
- type AXElement
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AXApp ¶
type AXApp struct {
// contains filtered or unexported fields
}
AXApp represent an app which is accessible through an hierarchy of accessible elements through accessible APIS It implements appHandler
func GetAXAppByTypeAndTitle ¶
Get the frontground app from the system and the hirarchy of accessible elements
func (*AXApp) ClickWithOrder ¶
func (*AXApp) Reload ¶
func (a *AXApp) Reload() (api.AppHandler, error)
In case we already have a ref to an app we can just reload it
func (*AXApp) SetValueOnFocus ¶
func (*AXApp) SetValueWithOrder ¶
type AXElement ¶
type AXElement struct { Ref axAPI.OSAXElement ID string Value string ElementType *elements.ElementType Parent *AXElement Children []*AXElement }
func GetAXElement ¶
func GetAXElement(element axAPI.OSAXElement, parent *AXElement) (*AXElement, error)
func (*AXElement) FindElements ¶
func (a *AXElement) FindElements(id string, elementTypes []elements.ElementType, strict bool) (out []*AXElement)
Get the elements by type and id if id should match extacly strict should be true the output is a map with the element and the order on the app
Click to show internal directories.
Click to hide internal directories.