If there are 100 checkboes in a page then how can we select all chexkboxes at once through descriptive programing in QTP using vb script.
Please send the answers...

Answer Posted / pravati

set obj=Description.create()
obj("micclass").value="Webcheckbox"
set checkboxobj=Browser("micclass:=Browser").page("micclass:=page").childobjects(obj)
msgbox checkboxobj.count
for i=0 to checkboxobj.count -1
checkboxobj(i).set "on"
Next

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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


Hi All, I Want To excute scripts batch without using QC .I need code for that Thanks Balaji

1326


I have enrolled for a QTP course which is a four weekend course.Do you think its a good way to start off learning this tool?What all do i need with me in order to become a pro at using this tool?

1677


How does quicktest professional identifies the object in the application?

555


diff between qtp versions from 8.5

1571






Mention the test steps of qtp.

542


X flies from Hyd to bangalore using different methods of transportation. write the test scenarios and test cases for this?

1509


What is keyword view in qtp?

554


Is it possible to call win runner script in qtp?

627


To which environments does quicktest professional supports?

543


What is the difference between Keyword Driven test and Data Driven test?

1775


What are the data types in qtp?

669


how to acess a test in RSA?

1673


Can we run multiple QTP scripts one after the other without manual intervention? How?

600


I had installed QTP 9.2. It is working fine but whenever I open QTP, it is trying to reinstall the below-mentioned files again and again "QTP92PS82UPGRADE.exe", "recogn.dll". If anybody has these files, please provide those files in this site or you can send that files to my mail id also (lravi4u@yahoo.com). If you don't know where the files will be in the QTP, search in the QTP software CD or path of QTP program installed (C:\Program Files\Mercury Interactive\QuickTest Professional)

1465