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


Please Help Members By Posting Answers For Below Questions

Describe the differences between functions and actions in UFT?

614


How you will rate urself in QTP in the range of 0 to 5

1750


Give me At Least 5 Differences between DOCUMENTATION OBJECT MODEL(DOM)and COMPONENT OBJECT MODEL(COM)? Interviewer said me to WRITE the difference only in points not as you WRITE a paragraph ???? only in points

1633


breef description of batch testing ?

1713


What is quicktest professional window?

567






am not having intrest in coding lang like c c++ java etc can i choose Testing tools as my carrier and please suggest me which tool is good (suitable for me)

1284


Explain process of smart Identification in QTP?

603


How does you test a weblink which is changing dynamically?

558


Give the syntax to import/export xls into qtp.

588


How to test background color and dynamic images during run time can you put the check point for moving objects?

1451


I am a new tester that needs to create an automatic script involving security questions. On a webpage I need to select a security question(which are random) from a drop down menu, and then input the answer as the last word from the security question. I have the script set-up to automatically select the first security question from the drop down. The problem I am having is trying to insert the security answer. How do I insert the security answer based on the selection from the security question?

1855


Hi ,Can any one pleas explain how to test splash objects using QTP?

1909


What is the difference between per-action and shared?

594


What is an expert view and keyword view?

574


What are the common defects found in your project? (in qtp interview)

1621