首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >如何在Aplescript中选中Adobe Installer的复选框?

如何在Aplescript中选中Adobe Installer的复选框?
EN

Stack Overflow用户
提问于 2012-11-05 17:30:11
回答 1查看 160关注 0票数 2

我正在尝试安装Adobe Flash Player,我想选中复选框并需要单击安装按钮,当我试图通过UIElementInspector获取window的全部内容时,我无法获取复选框和安装按钮的内容。

我刚试着用下面的脚本点击复选框,但没有成功,错误是unable to get the checkbox..请建议如何检查..

代码语言:javascript
运行
复制
tell application "System Events"
    tell process "Adobe Flash Player Install Manager"
        set frontmost to true

        click the checkbox "I have read and agree to the terms of the Flash Player License Agreement" of window "Adobe Flash Player 11.5 Installer."

    end tell
end tell

请点击下面的链接查看Adobe Flash Player安装程序的图片。

https://docs.google.com/document/d/1yzyBTrvi94QxjlEAlcbudOBpXiTGPEI2LA3D1iEo8Gw/编辑

EN

回答 1

Stack Overflow用户

发布于 2012-11-06 18:38:32

下载此软件:

http://pfiddlesoft.com/uibrowser/downloads/UIBrowser222.dmg

安装它。

您可以简单地使用此工具来读取复选框和所有复选框的名称。

例如:如果你附加了一个有窗口和复选框的应用程序,你可以通过下面的脚本选中这个复选框:

代码语言:javascript
运行
复制
tell aplication "system events"
   click checkbox 1 of window 1
end tell

只需记住,在其他窗口中,将窗口保持在最前面。

您可以通过单击UI浏览器应用程序中存在的目标弹出按钮来附加流程。

然后单击Switch to screen reader选项。

现在可以看到按钮、控件、checkbo的名称

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/13229239

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档