Use itemscount method to count the number of items present in the list box.
For i = 1 to itemscount bw().pg().listbox().select(0) bw().pg().winbutton(-->).click Next I guess this will resolve your issue. Regards Uma Mahesh -- You received this message because you are subscribed to the Google "QTP - HP Quick Test Professional - Automated Software Testing" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/MercuryQTP?hl=en
