UI自动化-如何捕获-使用JavaScript编辑器进行记录 [英] UI Automation - how to capture - record using javascript editor

查看:99
本文介绍了UI自动化-如何捕获-使用JavaScript编辑器进行记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

MobileSafari.app没有可访问性标签 有没有一种方法可以捕获(记录)事件,以便可以在javascript中用于UI自动化?

MobileSafari.app doesn't have accessibility labels is there a way to capture (record) events so that i can use in the javascript for UI Automation?

以前有一篇发表该声明的文章,但未提供有关如何使用javascript编辑器进行记录的说明

there was a previous post which made that statement but didn't provide any instructions as to how to record using the javascript editor

请详细

先谢谢您!

推荐答案

只需在Instrument会话中打开一个新脚本,然后按下页面底部的小记录按钮即可(出现在屏幕截图中).现在使用您的应用程序,您应该会得到这样的东西:

Just open a new script in your Instrument session, and push the little record button at bottom of the page (appears on the screenshot). Now use your app and you should get that kind of stuff:

现在,您可以看到按钮的值或名称,并使用它来编写自己的脚本.我不是程序员,所以此工具对我非常有用.
希望它也适合您. :)

Now you can see the value or the name of your buttons and use it to write your own scripts. I'm not a programmer, so this tool is very useful for me.
Hope it will be for you too. :)

这篇关于UI自动化-如何捕获-使用JavaScript编辑器进行记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆