如何识别qtp中特定对象的索引
我有表单,该表单包含 JavaStaticText 字段、组合框和文本字段。我想要该表单中所有项目的索引。我尝试获取检查点和获取属性,但没有获取索引。如何获取特定索引,
例如:
Name XXXX
Job XXXX
Country XXXX
我想要分别包含姓名、工作、国家、XXX 的索引。
I have form, the form contains JavaStaticText fields, and Combo box, and Text fields. I want index of all the items in that form. I tried to get checkpoints, and GET properties but I didn't get the index. How to get particular index,
For example:
Name XXXX
Job XXXX
Country XXXX
I want index of Name,Job,Country, XXX individually.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不确定我是否理解您要做什么,这里有一些代码获取 calc.exe 上
9
按钮的索引,您可以基于您对此的解决方案或解释它与您想要做的事情有何不同。编辑:来自另一个问题你问我看到你正在使用属性
class_index
,如果这是你想要的,只需执行以下操作:I'm not sure if I understand what you're trying to do, here's some code that gets the index of the
9
button on calc.exe, you can either base your solution on this or explain how it differs from what you're trying to do.Edit: From another question you asked I see you're using the property
class_index
, if this is what you want just do: