|
我录制了一段脚本,在回放的过程中出现中断,但是程序本身并没有出现错误,请问原因是出自那里?录制的脚本如下:还有一个问题,为什么在GUI 当中datapool无法定义?而datatype却可以用呢?
Sub Main
Dim Result As Integer
'Initially Recorded: 2005-2-16 10:15:40
'Script Name: 采购计划新增
Window SetContext, "Caption=博通协同办公平台物流系统 - Microsoft Internet Explorer", ""
Browser SetFrame,"Type=HTMLFrame;HTMLId=leftFrame;\;Type=HTMLFrame;Index=1",""
Browser NewPage,"HTMLTitle=left",""
HTMLTable Click, "Type=HTMLTable;Index=3", "Row=1;Col=2"
HTMLTable Click, "Type=HTMLTable;Index=4", "Row=5;Col=1"
HTML Click, "Type=HTML;HTMLId=itemcg_03_01", "Coords=62,14"
Browser SetFrame,"Type=HTMLFrame;HTMLId=mainFrame",""
Browser NewPage,"HTMLTitle=采购计划",""
HTMLLink Click, "Type=HTMLLink;HTMLId=btn_xz", ""
Browser SetFrame,"Type=HTMLFrame;HTMLId=mainFrame;\;Type=HTMLFrame;HTMLId=topcontent",""
Browser NewPage,"",""
EditBox Click, "Type=EditBox;Name=CGJHBH", "Coords=50,13"
ComboBox Click, "Type=ComboBox;Name=JHLB", ""
ComboListBox Click, "Type=ComboListBox;Name=JHLB", "Text=紧急计划"
Browser SetFrame,"Type=HTMLFrame;HTMLId=mainFrame;\;Type=HTMLFrame;HTMLId=bottomcontent",""
Browser NewPage,"HTMLTitle=采购计划明细",""
HTML Click, "Type=HTML;HTMLId=insertBeforeRow", "Coords=55,8"
EditBox Click, "Type=EditBox;Name=WLBH_NO0", "Coords=32,6"
HTMLImage Click, "Type=HTMLImage;Name=selWLBH0", "Coords=6,2"
Window SetContext, "Caption=通用选择 -- 物料信息 -- 网页对话框", ""
Browser NewPage,"HTMLTitle=通用选择 -- 物料信息",""
PushButton Click, "Name=butView"
Browser SetFrame,"Type=HTMLFrame;HTMLId=selComm;\;Type=HTMLFrame;HTMLId=MainList",""
Browser NewPage,"HTMLTitle=通用选取主表列表",""
HTML DblClick, "Type=HTML;HTMLId=tr_0", "Coords=114,10"
Window SetContext, "Caption=博通协同办公平台物流系统 - Microsoft Internet Explorer", ""
InputKeys "300{ENTER}"
Browser SetFrame,"Type=HTMLFrame;HTMLId=mainFrame;\;Type=HTMLFrame;HTMLId=bottomcontent",""
HTMLLink Click, "Type=HTMLLink;HTMLText=保存(S)", ""
Window SetContext, "Caption=信息 ???????????????? ???????????????? ???????????????? ???????????????? ???????????????? ???????????????? ???????????????? ???????????????? ???????????????? ???????????????? ???????????????? ???????????????? -- 网页对话框", ""
Browser NewPage,"HTMLTitle=信息 ???????????????? ???????????????? ???????????????? ???????????????? ??????",""
PushButton Click, "Name=confirmBut"
Window SetContext, "Caption=博通协同办公平台物流系统 - Microsoft Internet Explorer", ""
Browser SetFrame,"Type=HTMLFrame;HTMLId=mainFrame",""
Browser NewPage,"",""
PushButton Click, "Type=PushButton;HTMLTitle=Alt+R"
Window SetContext, "Caption=提示 ???????????????? ???????????????? ???????????????? ???????????????? ???????????????? ???????????????? ???????????????? ???????????????? ???????????????? ???????????????? ???????????????? ???????????????? -- 网页对话框", ""
Browser NewPage,"HTMLTitle=提示 ???????????????? ???????????????? ???????????????? ???????????????? ??????",""
PushButton Click, "Name=confirmBut"
End Sub |
|