Questions tagged [pyatom]

Python library for GUI testing Mac applications via the Apple Accessibility API.

This library is also known as ATOMac - Automated Testing on Mac. It is a Python library to fully enable GUI testing of Mac applications via the Apple Accessibility API.

Project page: https://github.com/pyatom/pyatom

8 questions
30
votes
3 answers

How to get Bundle ID of Mac application?

I want to use Python and atomac module to trigger an application in macOS like following scripts: atomac.launchAppByBundleID() app_win = atomac.getAppRefByBundleId(app_bundle_ID) But I don't know how to get the Bundle ID (app_bundle_ID) of the…
Qing
  • 1,019
  • 1
  • 8
  • 6
24
votes
2 answers

macOS Sierra - how to enable "Allow Remote Automation" using command line

I am working on an automation stuff in macOS Sierra (10.12.2). By using python's atomac support I can launch the safari browser and make the settings enabled via Safari -> Preferences -> Advanced -> check "enable Develop Menu" and then select…
Swadhikar
  • 2,152
  • 1
  • 19
  • 32
2
votes
0 answers

ATOmac - waitForWindowToAppear returns False every time

I am using Atomac (https://pypi.python.org/pypi/atomac/1.1.0) to automate a Mac application. I want to wait for a window to be appear(or disappear) and I saw in the documentations that are functions for…
mhd
  • 43
  • 1
  • 10
0
votes
1 answer

Python pyatom: setting window size and position

I've got a window that always loads up in my app at position x=780.0, y=222.0 I've been trying lots of different ways to change the window size and position however when I use component.setString("AXPosition", {0,0}) I keep getting the following…
0
votes
1 answer

How to find cursor position of a currently focused text editable element on Mac OS X?

I need to perform the following task on Mac OS X: Find an application window that user is currently working in Find a currently focused element within it If the element is text editable, find current cursor position I'd like to use ATOMac, but I…
Dalen
  • 4,128
  • 1
  • 17
  • 35
0
votes
0 answers

How to access web element in atomac?

Above is the element Tree which I can see, I want to click the button. Can anyone please help…
0
votes
1 answer

How to handle dynamically changing UIElements in atomac/python?

I am knew to atomac UI automation tool, I am trying to access a button in my mac app and every time app loads buttons UIElement tree is changing because of which I am not able to re use in my code, below is my code allButtons=…
0
votes
1 answer

Cannot get automac python package to work. Error = import: command not found

I'm trying to use the atomic package. However when I get to the usage steps where it says: >>> import atomac >>> atomac.launchAppByBundleId('com.apple.Automator') I get this error: -bash: import: command not found I am using python 2.7.5 on…