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

How can I map test requirement to Test Set (multiple test cases)? Under test lab, I have multiple test cases. I would like to map 1 requirement to all test cases under that test set (in test lab)? Currently, I think QC only allow mapping 1 test requirement to 1 test case. Instead I would like to map 1 test requirement to multiple test cases under one test lab.

4 Answers   CarrizalSoft Technologies, DST Global Solutions,


How do you open adobe acrobat file in QTP and do some testing on that file ?

0 Answers  


Explain the QTP Tool interface.

2 Answers   Crea,


I am using DataTable.ImportSheet method to import the data from an excel sheet to the Runtime DataTable of QTP. here is my piece of code DataTable.import("c:\DataSheet.xls","Members","Members") The first row headings of Members sheet of DataSheet.xls and Members sheet of QTp are matched. but the QTP is taking very long time(approximately half an hour) to import the data into runtime datatable even though the DataSheet.xls has one or two rows in it. Please let me know why this is happening and is there any alternative for impoting the data into runtime datatable of qtp ?

2 Answers  


what is Synchronization point in QTP?Can anybody give a perfect example on it Thanks in advance

5 Answers  






My Project is HOSPITAL CONTROL SYSTEM. In this MY testing modules are In-patient and Out-patient. plz explain those modules. i.e. How explain to Interviewer. with full details also . Waht types of bugs we can fond ? NOTE : IT is a web project plz urgent.

2 Answers  


Are You using any frame work? What is that? Explain about that.

4 Answers   Wipro,


How the smart identification is used in real time?Please explain with an example

0 Answers   Wipro,


Suppose i have given 10 test cases all the test cases should be automated?

3 Answers   NTT Data,


How do u fetch data from a database ?

2 Answers  


Can we create a qtp test from qc?

0 Answers  


Explain in brief about the qtp automation object model (aom).

0 Answers  


Categories