I have 14 itmes in a drop down that are associated with an
account And these items change with different accounts
I want to be able to define it by and index number or any
other id so if I enter 2 in my Global excel sheet it
selects the 2nd item from the drop down - is this possible?
Answer Posted / nilanjan saha
Suppose we have total 14 items in the weblist...It means that
x=Browser("XYZ").Page("XYZ").Frame("something").WebList
("Listbox").GetROProperty("items count")
msgbox x ' It should print 14
if you want to print all the values of the weblist then use
for loop for that purpose:
For i=1 to x
msgbox Browser("XYZ").Page("XYZ").Frame("something").WebList
("Listbox").getItem(i)
Next
Hope above code will help...
Regards,
Nilanjan
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what is ODC and GDC?
What are the features supported by UFT?
Plz Explain How to access Or Store Script from VSS? Explain Real time work (qtp) where you store folders and next to how to you access that folders and how you maintain folders in VSS ? What are the Menu's in VSS? Suppose in Manual, by using Checkin Checkout u can access documents. how you access in QTp REal time?
If object is not recognized by qtp but the object is standard object what is your approach?
In qtp, how you can get the last character from a string?
Through array we can execute the testcase how ? give me example
What are the data types in qtp?
Tell some commonly used Excel VBA functions?
There is an built in window application in qtp9.1,i.e.Flight4.0.i want to implement the recovery maneger on it.How can i do this?
What are the views available in quicktest professional (qtp)?
How is test case write?
How to create a standard checkpoint ?
desribe a situation where u faced a stressful situation and how did u cope with it
Hi All, issue is related to handling pop up script generated in IE, and run on mozilla. In App Under Test, when we get the alert pop ups, we just click ok button. if we need to run the same code on mozilla it will not identify . so we will check browser if browser(*).dialog(IE object).exits browser(*).dialog(IE object).winbutton(OK).click else 'by default mozilla browser(*).dialog(mozilla object).page(*).webbutton(OK).CLICK END IF But my qustion is. Do we write the above piece of code where ever we get such kind of pop ups from the application like alert pop up, confirmation pop up.... OR do we have any other alternative way to do this by using any functions in Recovery Scebarios? If Any of u know idea please do help me in this regard. or send answer to kravimb@gmail.com
hi all can anyone explain how to write the code for finding the mandatory columns in table which are having (red*) (red Astrik)