|
楼主试试
- Dim objectCount, tags, element, innerText()
- Set tags=Browser("Browser").Page("Page").Object.links
- objectCount=0
- For Each element in tags
- If trim(element.innertext)<>"" Then
- ReDim Preserve innerText(objectCount)
- innerText(objectCount)=element.InnerText
- objectCount=objectCount+1
- end if
- Next
- For i = 0 to objectCount
- Browser("####").Page("####").Link("innerText:=" & innerText(i)).Click
- newTitle = Browser("CreationTime:=1").Page("micClass:=Page").GetROProperty("title")
- ..........................
- Browser(("CreationTime:=1").Page("micClass:=Page").Sync
- Browser(("CreationTime:=1").Close
- Next
复制代码 |
|