TA的每日心情 | 开心 2015-5-13 15:39 |
---|
签到天数: 1 天 连续签到: 1 天 [LV.1]测试小兵
|
Sub Main
Dim Result As Integer
'Initially Recorded: 2006-5-16 11:09:15
'Script Name: 查询角色
Window SetContext, "Class=Shell_TrayWnd", ""
TabControl Click, "ObjectIndex=1;\;ItemIndex=1", ""
StartBrowser "http://10.1.254.50", "WindowTag=WEBBrowser"
Window SetContext, "WindowTag=WEBBrowser", ""
Window WMaximize, "", ""
Browser NewPage,"HTMLTitle=系统登录页面",""
EditBox Click, "Name=opeCode", "Coords=56,5"
InputKeys "XXXX"
EditBox Click, "Name=opePwd", "Coords=29,13"
InputKeys "XXXX"
HTMLImage Click, "Index=6", "Coords=48,14"
Browser SetFrame,"Type=HTMLFrame;HTMLId=left",""
Browser NewPage,"HTMLTitle=上报系统",""
HTMLLink Click, "Type=HTMLLink;HTMLText=角色管理;VisualText=角色管理", ""
HTMLLink Click, "Type=HTMLLink;HTMLText=查询角色;VisualText=查询角色", ""
Browser SetFrame,"Type=HTMLFrame;HTMLId=main",""
Browser NewPage,"HTMLTitle=selerole",""
HTMLLink Click, "Type=HTMLLink;HTMLText=查看;VisualText=查看", ""
Window SetContext, "Class=Shell_TrayWnd", ""
TabControl Left_Drag, "ObjectIndex=1;\;ItemIndex=2", "Coords=67,10,70,11"
Window SetTestContext, "WindowTag=WEBBrowser", ""
Browser SetFrame,"Type=HTMLFrame;HTMLId=main","" //这里可以回放成功
Browser NewPage,"HTMLTitle=selerole_dis",""
Result = HTMLTableVP (CompareData, "Type=HTMLTable;Index=1", "VP=Object Data")
Window ResetTestContext, "", ""
Window SetContext, "WindowTag=WEBBrowser", ""
Browser SetFrame,"Type=HTMLFrame;HTMLId=main","" //到这段代码出现回放不过去,提示错误发生在这里.
PushButton Click, "Type=PushButton;Name=Submit;VisualText=返回"
Browser NewPage,"HTMLTitle=selerole",""
HTMLLink Click, "Type=HTMLLink;HTMLText=查看;Index=2;VisualText=查看", ""
Window SetContext, "Class=Shell_TrayWnd", ""
TabControl Click, "ObjectIndex=1;\;ItemIndex=2", ""
Window SetTestContext, "WindowTag=WEBBrowser", ""
Browser SetFrame,"Type=HTMLFrame;HTMLId=main",""
Browser NewPage,"HTMLTitle=selerole_dis",""
Result = HTMLTableVP (CompareData, "Type=HTMLTable;Index=1", "VP=Object Data2")
Window ResetTestContext, "", ""
Window SetContext, "WindowTag=WEBBrowser", ""
Window CloseWin, "", ""
End Sub
如何解决这种问题. |
|