Hi .. i want to write the script for the combo nox list .
For example if any combo box having a multipul itme. So
how can i retrive each item for each iteration ? help me out .
Answer Posted / sandipgami84
Suppose u have Countries Combo, u can use below script
Set Browser_Page = Browser("title:=").Page("title:=.*")
cnt_CountryList = Browser_Page.WebList("html
id:=Countries").GetROProperty ("items count")
MsgBox(cnt_CountryList)
If cnt_CountryList >= 0 Then
Dim For_i
For For_i = 0 to cnt_CountryList -1
Browser_Page.WebList("html id:=Countries").Select For_i
MsgBox(Browser_Page.WebList("html
id:=Countries").GetROProperty("value"))
wait(1)
Next
Thanks,
Sandip, 09714177088
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How do we handle run-time errors?
How to open a new test using quicktest professional?
What are the differences between quicktest professional (qtp) and winrunner?
how can you do retesting (datadriven test) using notepad amd by using functions NOTE u should not use datatable methods
Hi. I have completed B.TECH(CS) , But I will go to "SECURITY CONSOLE OPERATING" [C.C CAMERA abservation]. IF interviwer asks " Why you choose this job ?" What we will say? urgent.........................urgent...........
What are the different types of recovery operation?
When to use descriptive programming?
Suggest and Define a solution for an application whose objects are not recognized by UFT?
Where to use Property Let, Property Get, Property Set in UFT
if mandatory and Assitive propertys are shows same how will u write skript in QTP window
Tell me one scenario, the complex functionality you have automated in your project?
What is qtpro?
How we can use the database checkpoint on a java web based application in which the database connectivity is done using JDBC->Pure Java type (in this type there is no need to create a DSN). At present in QTP we can fetch database values using checkpoint only through DSN. Is there any programming for this if we don't have DSN (ODBC)
How to perform cross platform testing and cross browser testing using qtp? Can you explain giving some example?
terminal services client