title: How could I get acces to the hyperlink, using it's name or caption
body: <p>in my test, i need to surf through site, using hyperlink, which name (and the caption) is 'next'. I added it from my application, and used a 'click' method. It is working only for the first time, so browser navigated to the second page and had stucked there. My code is below:</p>
  
  <pre><code>Do 
      Set msgList = Browser("Incoming — Gmail").Page("ВIncoming — Gmail").ChildObjects(msgDesc)
      msgCount = msgCount + msgList.Count()
  
      Reporter.ReportEvent micPass, "MessagesCount", "Messages: " &amp; msgCount
  
      'MsgBox msgList.Count() ' in a purpose of debugging
  
  Loop While SurfNextPage(Browser("Incoming — Gmail").Page("Deliver successfull"))
  
  'Function surfs to the next page, if it possible
  ' currPage -- current page
  'Return: TRUE, if  link to the next page is available, otherwise ELSE
  Function SurfNextPage(currPage)
  Dim bResult
  
     Set hlDesc = Description.Create
     hlDesc("name").Value = "next"
  
     Set hlList = currPage.ChildObjects(hlDesc)
     For i = 0 to (hlList.Count()-1)
         Set urlNextMail  = hlList(i)     'there would be the only element in list
  
     Next
  
     bResult   = urlNextMail.Exist
  
     If bResult Then
         urlNextMail.Click 'surfs to the next page
  
     End If
  
     SurfNextPage = bResult
  
  End Function
  </code></pre>
  
  <p>The web-page has a difficult structure -- a lot of DIV and Java, so i can't say exactly to which frame or table this link belongs, but there are no another links with the same name. </p>