|
代码是参考我们的飞机订票实例很简单的一个登入脚本,代码如下:
SystemUtil.Run "C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\flight4a.exe","","C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\","open"
Dialog("text:=Login").WinEdit("attached text:=Agent Name:").Set "mercury"
Dialog("text:=Login").WinEdit("attached text:=Password:").SetSecure "45bffddfdc88c4749b610477f36905bdb44f3359"
Dialog("text:=Login").VirtualObject("name:=object").Click 151,171
Window("regexpwndtitle:=Flight Reservation").Close
但我在运行的时候到了Dialog("text:=Login").VirtualObject("name:=object").Click 151,171这一步出现的错误提示为:object not visable.有人知道为什么吗? |
|