Set table = Description.Create()
table("micclass").value = "WebTable"
Set str = Browser("Web Tours").Page("Web Tours").Frame("info").ChildObjects(table)
MsgBox str.count
Set tempImage = Description.Create()
tempImage("micclass").value = "Image"
For i = 0 to str.count-1
temp = str(i).getROProperty("name")
MsgBox temp
Set tt = str(i).ChildObjects(tempImage)
MsgBox tt.count
For j = 0 to tt.count - 1
user = tt(j).getROProperty("name")
If user = "findFlights" Then
msgbox "sss"
tt(j).Click
End If
MsgBox user
Next
Next作者: expect88 时间: 2011-5-30 00:13
继续问,上面是自己想复杂了。
用以下方面在别的网页上测过没问题。
但是在LR 自带的订票程序中,用这下面方法还是看不到有点击,也不会跳至下一页面
Set objTable = Browser("Web Tours").Page("Web Tours").Frame("info").WebTable("Departure City :")
For row = 1 to objTable.RowCount
ColumnCount = objTable.ColumnCount(row)
For col = 1 to ColumnCount
Set images = objTable.ChildItem(row,col,"Image",0)
If not images is Nothing Then
MsgBox row & col
images.Click
End If
Next