|
下面这段代码,file->setting->RUNNING(run from row 1 to 2),但是在执行第二次循环时,出现错误。
Window("SuperClient").WinTreeView("SysTreeView32").Select "系统;区域1;传输网1", micRightBtn
Window("SuperClient").WinTreeView("SysTreeView32").WinMenu("ContextMenu").Select "增加设备(N)..."
Window("SuperClient").Dialog("增加设备").WinComboBox("设备类型:").Select DataTable("EquipmentName", dtGlobalSheet)
Window("SuperClient").Dialog("增加设备").WinEdit("IP 地址:").SetSelection 0,1
Window("SuperClient").Dialog("增加设备").WinEdit("IP 地址:").Type DataTable("IP_1", dtGlobalSheet)
Window("SuperClient").Dialog("增加设备").WinEdit("Edit").Type DataTable("IP_2", dtGlobalSheet)
Window("SuperClient").Dialog("增加设备").WinEdit("Edit_2").Type DataTable("IP_3", dtGlobalSheet)
Window("SuperClient").Dialog("增加设备").WinEdit("Edit_3").Set DataTable("IP_4", dtGlobalSheet)
Window("SuperClient").Dialog("增加设备").WinEdit("名称:").Set DataTable("Name", dtGlobalSheet)
Window("SuperClient").Dialog("增加设备").WinButton("确认(O)").Click
Window("SuperClient").Window("传输网1").WinObject("AfxFrameOrView42").Click DataTable("p_X", dtGlobalSheet), DataTable("p_Y", dtGlobalSheet)
Window("SuperClient").Window("传输网1").WinObject("AfxFrameOrView42").DblClick DataTable("p_X1", dtGlobalSheet), DataTable("p_Y1", dtGlobalSheet)
*********出错时箭头指向下面这句
Window("SuperClient").Window("1").WinObject("AfxFrameOrView42").DblClick DataTable("p_X2", dtGlobalSheet), DataTable("p_Y2", dtGlobalSheet)
**************
Window("SuperClient").Dialog("1 [系统板]").WinButton("关闭(C)").Type micEsc
run error
cannot find the "AfxFRAMEorView42"object's parent "1"(class window).Verify that parent properties match an object currently displayed in your application.
哪位高手能帮我解决一下啊??
谢谢 |
|