Set tags=Browser("51Testing软件测试网").Page("51Testing软件测试培训网").Object.links
Dim i,j, arr()
i=0
For Each element in tags
If Ucase(element.tagname)="A" and left(element.InnerText,1)="[" Then
ReDim Preserve arr(i)
arr(i)=element.InnerText
i=i+1
end if
Next
For j=0 to i-1
msgbox(arr(j))
Browser("51Testing软件测试网").Page("51Testing软件测试培训网").Link("[软件测试就业培训]").SetTOProperty "Text",arr(j)
Browser("51Testing软件测试网").Page("51Testing软件测试培训网").Link("[软件测试就业培训]").Click
wait(20)
Browser("51Testing软件测试网").Back
wait(20)