51Testing软件测试论坛

标题: 为何每次用到句柄都出错呢? [打印本页]

作者: 鱿鱼丝    时间: 2016-8-27 16:45
标题: 为何每次用到句柄都出错呢?
代码如下;
Const SW_MINSIZE=6
Extern.Declare miclong,"ShowWindow","user32.dll","ShowWindow",miclong,miclong
window("text:=QuickTest.*").highlight
ohwnd=Window("text:=QuickTest.*").GetROProperty("HWND")
Extern.ShowWindow ohwnd,SW_MINSIZE
wait 2

错误提示:
Cannot identify the object "[ Window ]" (of class Window). Verify that this object's properties match an object currently displayed in your application.

Line (3): "window("text:=QuickTest.*").highlight".

Tip: If the objects in your application have changed, the Maintenance Run Mode can
help you identify and update your steps and/or the objects in your repository.
作者: 梦想家    时间: 2016-8-29 11:14
先说一下什么软件 在说问题 在粘代码
作者: jingzizx    时间: 2016-8-29 16:46
看报错,怎么是识别不了对象




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2