|
代码.
Set values=Browser("index:=0").Page("index:=0").WebTable("html tag:=TABLE","name:=ck","index:=0")
oRow=values.RowCount
print "oRow====" & oRow
Counter=1
Do Until Counter>oRow
'Index:= 1 刷新 2 编辑 3 删除
set StbState = Browser("index:=0").Page("index:=0").WebTable("html tag:=TABLE","name:=ck","index:=1").ChildItem(Counter,11,"WebElement",1)
StbState.click
wait(10)
columndate=values.GetCellData(Counter,8)
' print "columndate====" & columndate
If columndate=State Then
Stbip=values.GetCellData( Counter,6)
'获取WebTable对象一列的值,并映射为链接 'Index:0=修改,1=提交,2=入库通知,3=审核,5=打印 WebTable("ippingtable").ChildItem语法参照帮助
set StbIdLink = Browser("ZTE Anyservice Uniportal").Page("ZTE Anyservice Uniportal_3").Frame("frm1").WebTable("ippingtable").ChildItem(Counter,2,"WebElement",1)
' 单击链接
StbIdLink.click
Flag=1
Exit do
End If
Counter=Counter+1
Loop |
|