Python ATOMac Library And Documentation

ATOMac Library and documentation:

ATOMac has enough methods that would help us automate the MAC applications. ATOMac drives the application elements with help of accessibility APIs. 

So to automate any application using ATOMac we would require "Accessibility Inspector" which comes with XCode. The more advanced software that help us identify the hierarchy of an element in the applications is "UI Browser" which can be downloaded at UI Browser website. [Note: This software is not a freeware]

We would now look in to two most important class methods of ATOMac library which has almost all the functions that would be required for GUI automation. [BaseAXUIElement & NativeUIElement which inherits BaseAXUIElement]


ATOMac - class BaseAXUIElement:

getAppRefByPid
getAppRefByBundleId
getAppRefByLocalizedName
getFrontmostApp
getAnyAppWithWindow
setSystemWideTimeout
launchAppByBundleId
launchAppByBundlePath
terminateAppByBundleId



ATOMac - class NativeUIElement(BaseAXUIElement):

getAttributes
getActions
setString
findFirst
findFirstR
findAll
findAllR
activate
getApplication
menuItem
popUpItem
getBundleId
getLocalizedName
sendKey
sendGlobalKey
sendKeys
pressModifiers
releaseModifiers
sendKeyWithModifiers
sendGlobalKeyWithModifiers
dragMouseButtonLeft
doubleClickDragMouseButtonLeft
clickMouseButtonLeft
clickMouseButtonRight
clickMouseButtonLeftWithMods
clickMouseButtonRightWithMods
doubleClickMouse
doubleMouseButtonLeftWithMods
tripleClickMouse
waitFor
waitForCreation
waitForWindowToAppear
waitForWindowToDisappear
waitForSheetToAppear
waitForValueToChange
waitForFocusToChange
waitForFocusedWindowToChange
textAreas
textAreasR
textFields
textFieldsR
buttons
buttonsR
windows
windowsR
sheets
sheetsR
staticTexts
staticTextsR
genericElements
genericElementsR
groups
groupsR
radioButtons
radioButtonsR
popUpButtons
popUpButtonsR
rows
rowsR
sliders
slidersR


No comments:

Post a Comment