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

How many types of Automation frameworks are there in UFT? Describe them.

560


Why qtp the best testing tool?

568


Can any give an example(if possible templates) how to test web application using QTP. thanks in advance

1561


In an interview, what r the general questions asked in QTP? pls give me anwser to this question?

1421


How to recognise the webelement and verifying that webelement is enabled?

1648






write a script to validate the content in the web application. (do it by OR method) and (do it by Descriptive method by creating a description object..

1802


By using QTP can we record any log files written by the application which is in execution?

1476


Which functionalities of QTP used in banking project?

1931


Hi,All How to create a link in excel sheet using qtp

3003


How to creating an output value using quicktest professional (qtp)?

570


What is the syntax for how to call one script from another?

565


An object is non standard object, i mapped it to standard object, eventhogh on mapping to standard object i cannot use the methods available on the standard object with the mapped object. How i can use those standard object methods with these mapped object. (((Note : dont tell that we can use virtual object as virtual object is to map nonstandard obj to standard obj)))

1591


How can I check if a environment variable exist or not?

543


What is reusable action?

608


What is the difference between analog and low level recording?

626