|
Sub Main
Dim Result As Integer
dim id As integer
dim i As integer
id=234
'Initially Recorded: 2004-8-9 15:24:47
'Script Name: shanchu1
Window SetContext, "Caption=http://192.168.102.252:7001/adm/welcome.jsp - Microsoft Internet Explorer", ""
Browser SetFrame,"Type=HTMLFrame;HTMLId=mainFrame",""
Browser NewPage,"HTMLTitle=角色管理",""
do
HTMLLink Click, "Type=HTMLLink;HTMLText=id", ""
PushButton Click, "Type=PushButton;Name=delete"
Window SetContext, "Caption=Microsoft Internet Explorer", ""
PushButton Click, "Text=确定"
id=id+1
loop while id<237
End Sub
这是删除从234到236的记录,删除一个可以,怎么做了循环,就不能执行呢 |
|