51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

查看: 1769|回复: 3
打印 上一主题 下一主题

[求助] QTP点击WinObject时的鼠标位置

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2013-12-5 14:16:11 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
在QTP进行录制时,点击对象是WinObject,在后面有坐标,是什么坐标,相对坐标吗?有什么用处呢。如Window("Femap with NX Nastran").WinObject("Model").Click 47,12
47和12是什么,为什么有的有,有的没有。谢谢。
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

  • TA的每日心情
    擦汗
    2016-5-4 10:34
  • 签到天数: 68 天

    连续签到: 1 天

    [LV.6]测试旅长

    2#
    发表于 2013-12-10 13:55:07 | 只看该作者
    object.Click [X], [Y], [BUTTON]

    X: Optional. An Integer value. The x-coordinate of the click. Note that the specified coordinates are relative to the upper left corner of the object.  Default = micNoCoordinate (-9999) -- center of the object.

    Y: Optional. An Integer value. The y-coordinate of the click. Note that the specified coordinates are relative to the upper left corner of the object.  Default = micNoCoordinate (-9999) -- center of the object.


    Tip: You can enter micNoCoordinate (-9999) for the x and y argument values if you want to enter a value for the button argument without specifying x- and y- coordinates for the click. micNoCoordinate indicates the center of the object.

    BUTTON: Optional. A predefined constant or number. See the Constants table, below. The mouse button used to click the object. Default = micLeftBtn (0).
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    3#
    发表于 2013-12-10 16:54:36 | 只看该作者
    相对吧
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    开心
    2016-3-21 13:09
  • 签到天数: 5 天

    连续签到: 1 天

    [LV.2]测试排长

    4#
    发表于 2013-12-12 14:51:58 | 只看该作者
    自动化测试技术领航 这本书中介绍过。不过我记不得了。呵呵
    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

    站长推荐上一条 /1 下一条

    小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

    GMT+8, 2024-5-17 09:52 , Processed in 0.070745 second(s), 27 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

    快速回复 返回顶部 返回列表