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 .

Answers were Sorted based on User's Feedback



Hi .. i want to write the script for the combo nox list . For example if any combo box having a ..

Answer / 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

Hi .. i want to write the script for the combo nox list . For example if any combo box having a ..

Answer / bindu kumar

x=Browser("name:=xxxx").page("title:=xxxx").WebList
("name:=statusVI").GetROProperty("items count")
For i = 1 to x
allitems=Browser("name:=xxxx").page("title:=xxx
x").WebList("name:=statusVI").GetItem(i)
msgbox allitems
Next

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More QTP Interview Questions

Where are the snapshots stored?

2 Answers  


how will you handle the situation when object is not caputred during record?

0 Answers  


Which recording modes need more memory?

0 Answers  


What is the another extention name of library file.If that is exist than what's the differnce between them.

1 Answers   Synechron,


Why do we use breakpoints in QTP?

0 Answers  






I'm having a problem to get the status(pass or fail) during runtime for every iteration ran, and must get the results stored to an excel sheet if possible.

1 Answers   FAI,


what is the script to select 2 or more than 2 options from a listbox.

2 Answers   Polaris,


How do I get the QTP scripts result in xml format by using vb script function?

0 Answers  


can we take 'dim my pen is good' as a paramerter

2 Answers  


what is descriptiveprograming? how to do object identification thrugh Descriptive and is possible smart identification or not

5 Answers   Syntel,


How would you export a script from one pc to another in qtp?

0 Answers  


We have an action attached with the library file in QTP. When I will click on run button,which file is going to be executed first a)Action b)Library

1 Answers  


Categories