|
之所以 回复你,是让你知道,有了问题 要想办法解决!
贴代码,,不过 可能你那个是有点麻烦,不过不清楚的
Set mytable = Browser("title:=.*.*").Page("title:=.*.*").webtable("index:=0")
rownum = mytable.GetROProperty("rows")
colnum = mytable.GetROProperty("cols")
colcheckid = 0
colidoper = 0
For i = 1 to colnum
cellinfo = mytable.getcelldata(1, i)
If trim(mytable.getcelldata(1, i)) = "操作"Then
colidoper = i
Exit for
End If
Next
For i = 2 to rownum - 1
operinfo = mytable.ChildItem(i, colidoper, "Link", 1).getroproperty("innertext")
If trim(operinfo) = "补贴邮票" Then
mytable.ChildItem(i, 1, "WebCheckBox", 0).set "ON"
End If
Next |
|