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

HI, pls help me on this, iam not able to capture getcelldata value in javatable... msgbox javawindow("").javatable("").getcelldata(3,3) but it diaplays empty...

2397


i want information about API testing and i want info like how process can be done in company? i want added info like coding ,debugging, desing in c.v ? what should add in c.v for eg banking domin? pls any answer my question?

1606


any body can you help me what is the script to automate an comand promt

1978


Can any one tell me about "Mapping Repository Parameter Values" and why we use it....??How to use it???Please, tell the preconditions also...........???? Thanks in Advance

1503


How you can make an action as re-usable action?

656






Subj: realtime example of Database check point, Can any one please detail on how the Database check point is utilized/implemented in a real time project. I already know how to make one by creating DSN/ODBC and writing the required query manually and other steps...I wanted the actual concept of implementation...couple of live examples will be highly appreciated. Thank you in advance

1773


how many maximum number of virtual users we can create?

1572


What is system testing and what are the different types of tests you perform in system testing?

601


What is throw object?

1746


What is the syntax to call one script from another?

540


How to data driven test for Win objects in QTP ?

1475


hi can anybody help with an qtp 9.2 license key please. Thanks, Nitesh.

1836


i can done the project with QTP in that time i can say how many members in my team size?

1370


Can any one say what exact diff between test->parameters, action properties-> parameters. after defining the parameters in test->settings, how can we access those parameters.(i know how to use action prop parameters)

1622


what is impact analysis on regression testing?

2048