问题标签 [pyatom]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
python - ATOmac - waitForWindowToAppear 每次都返回 False
我正在使用 Atomac ( https://pypi.python.org/pypi/atomac/1.1.0 ) 来自动化 Mac 应用程序。我想等待一个窗口出现(或消失),我在文档中看到了它的功能:(https://github.com/ldtp/pyatom/blob/master/atomac/AXClasses.py)
但是,当我测试 waitForWindowToAppear 函数时,它总是返回 False,例如:
python - 如何处理 atomac/python 中动态变化的 UIElements?
我知道atomac UI自动化工具,我正在尝试访问我的mac应用程序中的一个按钮,每次应用程序加载按钮时UIElement树都会发生变化,因为我无法在我的代码中重复使用,下面是我的代码
正如您在我的代码中看到的那样,我正在尝试从 UIElement[5] 访问按钮,该按钮将在下次加载应用程序时动态更改为 6,7 或 1,因为我希望它单击的按钮不会发生
python - 如何访问atomac中的网页元素?
上面是我可以看到的元素树,我想点击按钮。任何人都可以帮我做吗?
python - 如何获取 Mac 应用程序的 Bundle ID?
我想使用 Python 和atomac
模块来触发 macOS 中的应用程序,例如以下脚本:
但我不知道如何获取app_bundle_ID
应用程序的 Bundle ID ()。
python - 如何在 Mac OS X 上找到当前聚焦的文本可编辑元素的光标位置?
我需要在 Mac OS X 上执行以下任务:
查找用户当前正在使用的应用程序窗口
在其中找到当前聚焦的元素
如果元素是文本可编辑的,则查找当前光标位置
我想使用 ATOMac,但我不知道该怎么做,即什么是正确的属性等。有什么想法吗?