How will u find that how many List boxes( and check boxes)
are present in one particular window
Answer Posted / kalyan
HI Every bodey,---
Any object present in the page is known as childobject.
Ex:-Link,Web Edit,Check Box,Web button,List box,etc...
If u want to coun the Listboxes (or)Check boxes you can
write below script.
---------CODE----------
set ochbox=description.create
ochbox("micclass").value="checkbox"
set chobj=Browser().Page().childobjects(ochbox)
n=chobj.count
msgbox n '(here you can get how many check boxes there in a
page)
for i=o to n-1
val1=chobj(i).getroproperty("innertext","name")
msgbox val1
next
-----------End---------
In the same way we can find Links,Webbuttons,Listboxes,etc..
Any doubts----mail to----mskalyan.smile@gmail.com
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
When to use descriptive programming?
What are the different types of qtp test assets and their extensions?
I am in .Net development for past 3.5 years and want to enter in to automated testing and learn QTP. For this I need some good tutorial for beginners. I will be really greatful if any one has and they can send it to me on this address- ruchidureja@gmail.com
I opened gmail login into gmail and i have to save (Pass or move) all the mail into notepad please give me code Thanks of all
What is the extension of QTP local Repository? If it is .mtr then what is .bdb extension stands for?
What are the views available in quicktest professional (qtp)?
What are the different types of checkpoints?
When we r doing data driven test with chkpts, i want to insert formulae in data sheet but i didn't get. How we wil do that plz. explain in detail.
How you create new action in qtp?
What is the use of an object spy tool in qtp?
why you have standardized functions? plzzz guys with real time exp. do answer
Hi Friends, Im planning to do certifcation in mercury Automation Tool QTP.But I Didnt get any clear details regarding course syllabus, fees, where to approach, and which certification would be useful for the experienced testers? can any one send me the details?
What are the differences between quicktest professional and winrunner?
Explain QTP using different development techniques ?
Discuss quicktest professional (qtp) environment?