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

hi what is the use of "dim" in automation objective model or any where what is the use of "dim" plz tell me

3 Answers  


How do u fetch data from a database ?

2 Answers  


How often were they executed?

0 Answers   Sarga Technologies,


What are the check points can be inserted without recording?

0 Answers  


What is the difference between analog and low level recording?

0 Answers  






When I used random numbers(1 to 9) with regular expression and run the test, it runs only 5 iterations with passed result instead of running all 1 to 9. Please tell me what can be the reason

0 Answers  


Hi,can anyone tell me How to found the number of 1's and 2's in the given format 1,1,2,2,3,3,4,2 using vbscript Thanks in advance

3 Answers  


please write a script to find the text in a application. Note: i dont know the location of that text where it is located. just like negative testing.

2 Answers   BSL,


We have a text file which contains 1 to 100 numeric values sequentially like 1 2 . . 100 Now we have to count them and transfer to XML file by writing a code in qtp.

1 Answers   Cap Gemini,


How to handle the exceptions using recovery scenario manager in QTP?

1 Answers   Crea,


How do you return a value for an array.

1 Answers  


What is diff betwee datatable.importsheet "path" and datatable.import

2 Answers  


Categories