How to test previous/next record/page navigation buttons in a web application ?
User j_vas_kum (email@example.com) posted:
Can anyone tell me how do i test navigation buttons/images in a web
page ..My web app can show a maximum of 5 records in one page, so if
I have 10 records then I have to click on next page and view the next
5 records ..How can I test the functionality of these navigation
Re: How to test previous/next record/page navigation buttons in a web application ?
Seems to me that this question or at least a similar one has been posted here at least once before. Might be worth your while to investigate this.
If your web app is similar in nautre to others I've seen, then there is probably a header or like minded item that indicates the total number of returned records as well as the current set of records that are being viewed. You could read in these values to aid you in determining how many more "next" clicks are required to get to the end of the record set, as well as the number of "previous" clicks needed to return to the start of the record set. Also, if the next/previous objects are selectable images, then separate images are used when you are at the start or end of the record set to indicate if next/previous are enabled. You can use obj_get_info() to look at the label (many times the images are called such things as next_on.gif and next_off.gif) or perhaps the enable property to determine your processing.