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

is we can import the object repository from external source. if it so then how?

5 Answers  


how to create user defined functions in QTP? can any one expalin me with example.. Thanks in Advance for help

4 Answers  


Can we directly automate testscripts accrdoing to requirements

2 Answers   CitiGroup, Novartis,


GET WHETHER THE GIVE NUMBER VALID OR NOT IN BETWEEN THE GIVEN RANGE?IN VB SCRIPT(QTP)

2 Answers   CSC,


how to retrieve data from flight resevation->reports

2 Answers   Wipro,


who is developed QTP ? is it from Mecury or HP

2 Answers  


I have written some script in QTP and i added those objects in Object Repository. All written script has been executed successfully. After few days when i tried to execute the same script i got error message "objects not found in Object Repositiry". How can we solve this issue?

3 Answers  


Is it possible to call from one action to another action in qtp?

1 Answers  


i need to learn the descriptive programming very well so for that what to do am reading the qtp user mannual but it is not so any materials or links with examples i want please help me

2 Answers  


How to Test the mainframe application?(tell me few basic things)

1 Answers   Covansys, IBM, UST,


What is the syntax to call one action in another?

1 Answers  


How to findout the number of spaces with in STRING For Ex : STRING is " RAJ IS A SOFTWARE ENGINEER " Please send me the answer

3 Answers  


Categories