How to focus on nth page of an web application?

I want to focus on the 9th page of my web application. What should I do? Explain with script.

Questions by rchidvilasa

Showing Answers 1 - 1 of 1 Answers

adisgee

  • Aug 2nd, 2007
 

Here is a guideline algortihm and some sample script (though not to be referred to syntactically) that might help:

1. Set focus on the page.
2. Get the page counter. (this should be displayed somewhere on every page)
3. If page number <> 9 click on "next" link/page.
4. stop

for i = 0 to 100
   vPageNumber = Browser().Page().GetROProperty( .., <text>, ..)
   if vPageNumber = 9
      exit for
   end if
next

100 is just some random number above. u can use a do - while loop statement instead of a for or even a loop until statement. anthing should do.

Thanks,
Aditya.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions