I used Child objects to get the count of the no of weblist
present in the page.now i need to select the item in the
weblist..Please send me full code

Answer Posted / udham singh

set c = description.create
c(micclass).value = "Weblist"
set d = browser().page().childobjects(c)
msgbox d.count 'will give the number of lists on the page

for i = 0 to d.count - 1

d(i).select "1" 'u can give any value in double quotes

next

Note : this code will work on all the liste present on the
webpage.
Also if u want to perform select operation only on selected
weblists thats also possible

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

please any one can explain the keyword driven framework. with gmail example.

1615


How do you create regression test packs?

606


Explain the features and benefits of quick test pro(qtp)?

508


Hi, I am using OutputCheckPoint and I am storing the value in the data table. The stored value for column:bedroom:"Bed:4" The another value for column:bathroom:"Bath:2 Full,1 Partial" I need only the no 4 from the first column. I need only the no 2,1 from the second column. I used split array,but it also show array(0) has the value"bed:4" ..... Even though I highlight only 4,It is seleting the full value "bed 4".How can I get only the nos Thank you Uma

1293


www.icici.com after this home page wll came, in this page what r the items we r going to test for manual and what the element we r test for QTP... explian clearly with example

1491






There are 10 rows in the datatable. How can we fetch 2 rows and then skip 3rd row. After that, pick 4th & 5th row and skip 6th row. Please share code

1203


How to check feasibility of the appliction?in automation testing?

1465


what the difference between shared repository and per action repository?

546


What is the difference between per-action and shared?

582


Did the scripts need lot of maintenance? If yes, why?

3290


Is it possible to refer the same object for referring more than one object that are of different class using the descriptive programming approach? Suppose my code is 'To create the object named as obj Set obj=Description.Create() 'To define the values obj("title").value="IE" obj("type").value="text" obj("html tag").value="INPUT" 'To set the value Browser("IE").Page("Yahoo").WebEdit(obj).Set "xyz" Can I refer the "obj" object for the three objects like Browser,page and webedit objects? If so how?

1567


Can an action have 2 shared object repositories associated with them? In that case, if two of them contain the same object, which one will be considered?

581


what is clean sweep?

1875


hi, can u tell me the QTP TEsting process in present real time companies?(beware of this... now a days Recording is not using,, only DP) and don't tell note book answers like step 1 spep2....like this .......post answer with professional skills in simple english words) thank u

1311


What is the diff between image and bitmap check point?

592