How to Display last item of a Combobox by using QTP?

Answer Posted / ajreddy

hi
what ever chandu wrote its correct
Example:
x=Browser("micclass:=Browser).page("micclass:=Page).Getroproperty("items
count")
msgbox x ' Here u knows how many items r there in combobox

' after that which item u want u can get it
y=Browser("micclass:=Browser).page("micclass:=Page).Getitem(lastitemindexnumber)
count")
msgbox y

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hello Everyone, Please provide me the practical example of business component concept of QTP.Like how to create business component,how to connect the quality center etc.... Thanks in advance, Gaytri

1519


Which features or drawbacks of QTP lead to the upgrade for a newer version?

657


Hi How to retrieve data from web element line by line?

1658


By using QTP can we record any log files written by the application which is in execution?

1581


UFT 12.02 which ALM version will support

1068






Output values? i want a practical example

1399


I have many listboxes in my application. I have to check whether the contents inside the listboxes are in sorted order or not..can anyone please send the code as early as possible

1550


What are the features supported by UFT?

743


how to know no.of mails in our g mail by using vb-script

1863


How you can replace string in qtp?

657


Define Error Pane of UFT?

766


To retrive the test data which tool vl use and whats basis u vl write test data? its urgent

1528


Which is the best QTP training institute in Delhi/NCR region and what is the approximate fee for QTP course (Basics and Advanced)

1474


Explain the concept of how quicktest professional identifies object?

619


Give me detailed theritical explanation about keyword driven, hybrid framework, environment variables, hybrid frame work

1554