QTP:使用本机属性识别对象
如何使用 OR 或 DP 来识别具有本机属性的对象?
我知道 Web 对象的“属性/属性”,但我的应用程序是独立的。
我故意不发布更多细节,因为我需要问题本身的答案,而不是我的特定问题的可能解决方案。
谢谢。
How to identify an object, using OR or DP, with a native property?
I'm aware about "attribute/property" for Web objects, but my application is standalone.
I'm deliberately not posting any more details, because I need an answer to a question itself, and not the possible solution to my particular problem.
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
一种方法可能是获取所有子对象,然后检查本机属性以获取所需的对象。
An approach might be to get all child objects and then check for the native property to get the desired object.
我正在寻找的实际答案是定义一个与“对象标识”菜单中所需的本机属性同名的自定义属性。这会将属性从本机移至测试。
The actual answer I was looking for is to define a custom property with the same name as the desired native property in the Object Identification menu. This will move the property from Native to Test.
不存在非本机属性,本机属性是开发人员为应用程序中的对象定义的,这些对象在应用程序的底层内部执行一些任务。但是,您可以使用 OR 选项定义自己的属性,该属性将在运行时起作用。
There are no non-Native property as such, Native properties are developer defined for the object in the application which are internally do some task wih underlying layers of application. you can however define your own property using OR option which will work during run time.