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
Explain about business process component? types and usage?
your coming from electrical backgroung..but y ur coming to software side?
When ‘option explicit’ keyword is used in qtp?
How will you declare a variable in qtp?
I am a newbie to QTP / Automation testing. I want to develop a script that creates a data file automatically with proper headings using VBScript in QTP.
Plz Explain AUTOMATION REFERENCE MODEL?
What are the different types of qtp test assets and their extensions?
Explain the difference between check point and output value?
What is method name to compare two XML files.
Can any one brief some detail on how the shared and action object repository utilized/implemented in a real time project. I already know how to make shared object repositor by saving OR as .tsr extension..I wanted the actual concept of implementation...couple of live examples will be highly appreciated. Thanks
Why do we use "Text checkpoint" If we can make use of it in "standard checkpoint" ?
How to Get the Run-time value of an object under that web app under Test to the local data table sheet of that Action?
What is the syntax for how to call one script from another?
How to use setroproperty?
What is meant by Step generator?what is the use of this? we have 3 steps know there what r all those.? can u all pls give me clear idea of this