Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6781553
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:38:15+00:00 2026-05-26T16:38:15+00:00

in my test, i need to surf through site, using hyperlink, which name (and

  • 0

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:

Do 
    Set msgList = Browser("Incoming — Gmail").Page("ВIncoming — Gmail").ChildObjects(msgDesc)
    msgCount = msgCount + msgList.Count()

    Reporter.ReportEvent micPass, "MessagesCount", "Messages: " & 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

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T16:38:16+00:00Added an answer on May 26, 2026 at 4:38 pm

    After some back and forth in the comments it appears that the next link does exist on the last page but clicking it does nothing.

    You should modify the description you’re using in order to identify the link so that it only matches links that move to the next page and not the link that is invisible (but there) on the last page.


    Original answer:
    Since you’re always using the same page to call SurfNextPage then this method should work (assuming there is a "next" link in the object repository under said page).

    If you want to use different pages then you should use descriptive programming, i.e. not use an object from the repository, instead use something like this currPage.Link("text:=next") this will look for a link with "next" as its text property.

    Another thing that may be going wrong is that an object is identified before a navigation and then the navigation invalidates the object. If this is the case you should use the RefreshObject method (as explained in the documentation).

    If none of these suggestions help please provide more information on what exactly is getting “stucked”

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to test my web site from a US perspective (most of my
I need to test a serial port application on Linux, however, my test machine
I need to test a site with a dynamic menu in Mac Firefox, but
For a NUnit test I need to reference a .mdf file from a .config
I am using boost::test and need to use a mocking framework with it. Does
I need to test web API functions in REST format. Currently using Selenium RC
I need to test for general URLs using any protocol (http, https, shttp, ftp,
I need to test an application that processes SIP requests. For now, I want
As part of a numerical library test I need to choose base 10 decimal
My point is this. For test i need when user check chk1 the chk2

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.