|
脚本如下:Dim isStatus
Dialog("Login").WinEdit("Agent Name:").Set DataTable("AgentName", dtGlobalSheet)
Dialog("Login").WinEdit("Password:").SetSecure DataTable("Password", dtGlobalSheet)
Dialog("Login").WinButton("OK").Click
iStatus = DataTable("status",dtGlobalSheet)
If iStatus = "success" Then
Window("Flight Reservation").Close
End If
If iStatus="failed" Then
Dialog("Login").Dialog("Flight Reservations").Close
End if
运行脚本后:弹出以下错误信息
Cannot find the "Agent Name:" object's parent "Login" (class Dialog). Verify that parent properties match an object currently displayed in your application.
Line (2): "Dialog("Login").WinEdit("Agent Name:").Set DataTable("AgentName", dtGlobalSheet)". Failed |
|