Any one knows about descriptive programming to identify
objects in a page?
Kindly drop me mail
prasanna.sabat@gmail.com

Answer Posted / ycy

BY DP
Dim obj_ChkDesc

Set obj_ChkDesc=Description.Create
obj_ChkDesc(?html tag?).value = ?INPUT?
obj_ChkDesc(?type?).value = ?checkbox?

Dim allCheckboxes, singleCheckBox

Set allCheckboxes = Browse(?Browser?).Page
(?Page?).ChildObjects(obj_ChkDesc)

For each singleCheckBox in allCheckboxes

singleCheckBox.Set ?ON?

Next

Go to help section in QTP and see for other objects like
webEdit, webtable, webelement.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Any body have QTP 9.5 licence key. please provide me at madhukar_dec30@yahoo.co.in

1598


Define virtual object?

605


How to use debug tools?

2193


suppose in the middle of the project QTP will not work properly, then what do u do? and ur team?

1323


how to write the descriptive programming in QTP for remove the object value and substitute, with a variable then call the validation from excel

1901






What are advantages of test automation?

663


Explain how qtp identifies object?

606


can u explain relative path architecture framework in qtp?

1559


How will you test a stapler?

592


What is the difference between byref and byval in qtp?

580


Explain about the quicktest professional (qtp) automation object model?

562


what is the difference between development and testing

2369


1. What is the difference between Keyword and function in the keyword driven framework? 2. How do you associate Keywords to the script ?

982


what is the latest version of QTP? Main difference between 9.2 and 10 version

1544


Can we record an application running on a remote machine using qtp?

719