如何在QTP中获取文本区域检查点的x,y坐标?
在 qtp 中录制时,使用文本区域检查点来选择某些区域。录制和回放后保存测试用例。现在我想知道所选区域的 x 和 y 坐标。是否可以在 result.xml 或保存的测试用例中的某个位置查看 x 和 y 值?
While recording in qtp using a text area check point to select some area. After recording and playback save the test cases. Now I want to know the x and y coordinates for the selected area. Is it possible to see the x and y values in result.xml or somewhere in saved test case?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不太明白你想要什么。也许你可以解释得更详细。暂时,我给你一些信息,你可以使用:
如果你想要一个对象的绝对坐标,使用:
对于一个对象相对于其父对象的坐标,使用:
获取文本检查点的相对坐标区域,使用:
如果想得到播放时检查点的绝对位置,则需要将文本区域的绝对坐标与检查点的相对坐标相加:
对于右下等,可以将坐标组合起来:
I do not exactly understand what you want. Maybe you can explain more in detail. For the time being, I give you some information you can use:
If you want the absolute coordinates of an object, use:
For the coordinates of an object relative to its parent, use:
To get the relative coordinates of the checkpoint of the text area, use:
If you want to have the absolute location of the CheckPoint during playback, you need to sum the absolute coordinates of the text area and the relative coordinates of the checkpoint:
For the lowerright etc., you just can combine the coordinates: