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

WHAT ARE THE DISADVANTAGES OF SHARED REPOSITORY?

9 Answers   BirlaSoft,


This is Ajay i have few douts if anybody know pls give me reply. 1. i have opend 2 gmails i am working with 1 gmail i want to close other gmail by usig script. 2.i have 10 links in a page all of them have same properties& names i want to click on 5link by using script. 3.i have one combobox in that i want to see all the citynames in the combobox and i have to check weather hyderabad is present or not. 4. size of objectrepository. 5.what r problems we get during writing the script. 6.is it possible to compare to excel sheets in qtp if possible wht is the script. 7.example for lowlevelrecording

3 Answers   Symantic Space,


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

2 Answers   Synechron,


What are the features and benefits of quick test pro (qtp 8.0)?

0 Answers  


Can anyone tell me how i used QTP 9.2 use for GIS based S/w with an example?

0 Answers   IBM,


what is meant by keyword driven frame work can any one answer plzzzzzzzzzzz

1 Answers  


What are the Automation Limitations??

1 Answers  


How you calling actions in qtp?

0 Answers  


What is the synchronization point in qtp?

0 Answers  


in a web table , i want you to click a particular object inside cell

2 Answers  


How to convert manual test cases to automated testcases

1 Answers   TCS,


What is log file? what is the use of Log fine. How to create? what are the contents and the main advantages of log files. plz do help me in this concepts as i have an interivew on qtp in a couple of days. plz do help me.. thanks in Advance.

1 Answers  


Categories