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
Explain actions in qtp ?
What is difference between shared and local object repository?
What is action? How many types of actions are there in qtp?
i have two questions for regular expression :- Q1. I have date pattern eg-29/11/2011 29-11-2011 29.11.2011 Que- if any separator is there between date,month and year pattern should match else it should not match eg- pattern should not match in case of 2911-2011 Q2. let say i have a string and there is a number in between of that string eg.-Amount 30002.234 successfully credited to your account . now i have to match this pattern in such a way that even if decimal is not there pattern should match ,how i will do this using regular expression
Differences between text and test area checkpoints?
Explain object spy in qtp.
In qtp, how you can remove the spaces from string?
what is object and child object.. explain ..if possible give some example for better understanding ..
What is test object?
How can I change object description or check point values in qtp?
what is the difference between development and testing
How many types of Automation frameworks are there in UFT? Describe them.
Explain how Does Run time data (Parameterization) is handled in QTP?
How many types of recording modes in qtp?
Get the count of files of similar types from a folder.