问题简述如题,还望哪位大虾指点,不胜感激![](http://www.testwo.com/image/face/3.gif)
![](http://www.testwo.com/image/face/3.gif)
![](http://www.testwo.com/image/face/3.gif)
![](http://www.testwo.com/image/face/3.gif)
![](http://www.testwo.com/image/face/3.gif)
![](http://www.testwo.com/image/face/3.gif)
![](http://www.testwo.com/image/face/2.gif)
Dialog("text:=Login", "nativeclass:=#32770").WinEdit("attached text:=Agent Name","nativeclass:=Edit").Set "1234"
Dialog("text:=Login", "nativeclass:=#32770").WinButton("text:=Help","nativeclass:=Button").Click
Dialog("text:=Login", "nativeclass:=#32770").Dialog("text:=Flight Reservations","nativeclass:=#32770").WinButton("text:=OK","nativeclass:=Button").Click
Dialog("text:=Login", "nativeclass:=#32770").WinEdit("attached text:=Password","nativeclass:=Edit").SetSecure"4fed77fe165419c198d7beee3c1f1d2fa0424f8e"
Dialog("text:=Login", "nativeclass:=#32770").WinButton("text:=OK","nativeclass:=Button").Click
Dialog("text:=Login", "nativeclass:=#32770").WinButton("text:=Help","nativeclass:=Button").Click
Dialog("text:=Login", "nativeclass:=#32770").Dialog("text:=Flight Reservations","nativeclass:=#32770").WinButton("text:=OK","nativeclass:=Button").Click
Dialog("text:=Login", "nativeclass:=#32770").WinEdit("attached text:=Password","nativeclass:=Edit").SetSecure"4fed77fe165419c198d7beee3c1f1d2fa0424f8e"
Dialog("text:=Login", "nativeclass:=#32770").WinButton("text:=OK","nativeclass:=Button").Click
![](http://www.testwo.com/image/face/9.gif)
(为了避免图片无法正常现实,copy error message如下:
Cannot identify the object "[ WinEdit ]" (of class WinEdit). Verify that this object's properties match an object currently displayed in your application.
Line (12): "Dialog("text:=Login", "nativeclass:=#32770").WinEdit("attached text:=Agent Name","nativeclass:=Edit").Set "1234"".
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.)
help you identify and update your steps and/or the objects in your repository.)
![](http://www.testwo.com/image/face/24.gif)
Dialog("Login").WinEdit("Agent Name:").Set "1234"
Dialog("Login").WinButton("Help").Click
Dialog("Login").Dialog("Flight Reservations").WinButton("OK").Click
Dialog("Login").WinEdit("Password:").SetSecure "4fed77fe165419c198d7beee3c1f1d2fa0424f8e"
Dialog("Login").WinButton("OK").Click
Window("Flight Reservation").WinMenu("Menu").Select "File;Exit"
Dialog("Login").WinButton("Help").Click
Dialog("Login").Dialog("Flight Reservations").WinButton("OK").Click
Dialog("Login").WinEdit("Password:").SetSecure "4fed77fe165419c198d7beee3c1f1d2fa0424f8e"
Dialog("Login").WinButton("OK").Click
Window("Flight Reservation").WinMenu("Menu").Select "File;Exit"
![](http://www.testwo.com/image/face/7.gif)