Mac 辅助功能 API - 获取 chrome 选项卡

时间:2021-01-23 05:01:50

标签: macos accessibility accessibility-api

我想使用 macOS 辅助功能 API 在 google chrome 选项卡中单击网站上的按钮。

我正在使用 Atomac 包来执行此操作。

chrome = atomac.getAppRefByBundleId('com.google.Chrome')
window = chrome.windows()[0]

但是我现在可以在 chrome 窗口中找到可用的按钮,然后点击它们吗?

1 个答案:

答案 0 :(得分:0)

尝试使用 selenium 访问 Chrome 中的内容。

相关问题