For example one window is there the window contain some of
Check boxes but my question is how many check boxes are
there particular window?

Please solve the problem
gi_raju@rediffmail.com
ippaliraju@yahoo.co.in

Answer Posted / nanda

set objcheckbox = description.create

objcheckbox("class name").value = "WinCheckbox"
objcheckbox("nativeclass").value = "Button"

set get_checkbox = window("XXXX").childobjects(objcheckbox)

count_checkbox = get_checkbox.count

'msgbox count_checkbox

if u want to know the name of each and every checkbox..

for i = 0 to count_checkbox-1

check_name = get_checkbox(i).getROProperty("text")
msgbox check_name

next

If any queries...

nanda.dreddy@gmail.com

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I need to pull the data from the page which in row, column vice into excel sheet, how can it be done using QTP? eg: Name Dept xyz gdty i need the same data to be exported in excel sheet.

1897


What is the difference between a Function and Action in QTP?

837


What is action split and the purpose of using this in qtp?

733


What is the new version of qtp which is recently released in the market?

837


how do we know whether all objects are stored in the object repository or not? how can we know if a particular object is not stored in the repository?

1518


Define Environment Variable in UFT and its uses?

797


Problem with XML checkpoint in QTP ?

3691


What the differences are and best practical application of Object Repository?

813


How to connect the remote desktop using QTP 9.2 explain the method or procedure?

3022


Can we run test with out adding object in object repository? How it is possible?

802


How to find the length of the string in qtp?

760


How may types of defects identify application or your currently working application?pls give me answer..

1721


Explain object spy in qtp.

794


Hi! My OTP script has several bitmap checkpoints included which I check in the test results xml file. The test is for SAP 4.7. I need to save these bitmaps to files or at least export them to the html file using the export function in the test results viewer. Could you please help me with this problem? Thank you in advance! Best regards, Peter

2428


Explain quicktest professional (qtp) testing process?

745